Package io.karatelabs.parser
Class JsLexer
java.lang.Object
io.karatelabs.parser.BaseLexer
io.karatelabs.parser.JsLexer
Hand-rolled lexer for JavaScript. This implementation is designed to be
portable to other languages (JS, Rust) and serves as the canonical spec.
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JsLexer.LexerStateprotected JsLexer.LexerStatepopState()protected voidpushState(JsLexer.LexerState state) protected TokenTypeMethods inherited from class io.karatelabs.parser.BaseLexer
advance, isAtEnd, isDigit, isHexDigit, isIdentifierPart, isIdentifierStart, match, peek, peek, tokenize