Constructors
constructor
- new Lexer<T>(keywords?): Lexer<T>
Parameters
- keywords: Iterable<string, any, any> = []
Methods
lex
- lex(text, error): Iterator<T, any, any>
Parameters
- text: string
- error: ((code: string, message: string) => void)
- (code, message): void
Parameters
- code: string
- message: string
Returns void
Returns Iterator<T, any, any>
DSL lexer.
Tokenizes simple text dialects. Currently sufficient for Matter conformance and constraint tokenization.