Optional options: LexerBuildOptionsPrivate bufferOnly feed, reset can modify this var.
Private Readonly defsPrivate errorsError token list.
Private lineHow many chars in each line.
Only update, reset can modify this var.
Private offsetHow many chars are digested.
Only update, reset can modify this var.
Private restThe un-digested string.
This var is used to cache the result of buffer.slice(offset) to prevent unnecessary string copy.
Only feed, reset, update can modify this var.
Private trimmedCache whether this lexer already trim start.
How many chars are digested.
Try to retrieve a token. If nothing match, return null.
You can provide expect to limit the token type/content to be accepted.
Private logPrivate res2tokenPrivate updateGenerated using TypeDoc
Extract tokens from the input string.