l0_lexer namespace
Classes
Functions
- auto _is_ascii_ident_start(str c) -> bool
- Return whether
ccan start an ASCII Dea identifier. - auto _is_ascii_ident_part(str c) -> bool
- Return whether
ccan continue an ASCII Dea identifier. - auto _logical_predecessor_ends_expression(Token token, bool previous) -> bool
- Return whether the parser-visible predecessor ends an expression.
- auto is_reserved_keyword(str word) -> bool
- Check if a word is a reserved L0 keyword.
Variables
- dict KEYWORDS
- _EXPR_ENDING_TOKENS
- str OCT_CHARS
- str HEX_CHARS
Function documentation
bool l0_ lexer:: _is_ascii_ident_start(str c) protected
Return whether c can start an ASCII Dea identifier.
bool l0_ lexer:: _is_ascii_ident_part(str c) protected
Return whether c can continue an ASCII Dea identifier.
bool l0_ lexer:: _logical_predecessor_ends_expression(Token token,
bool previous) protected
Return whether the parser-visible predecessor ends an expression.
bool l0_ lexer:: is_reserved_keyword(str word)
Check if a word is a reserved L0 keyword.
| Parameters | |
|---|---|
| word | The word to check. |
| Returns | True if the word is a keyword, False otherwise. |
Variable documentation
dict l0_ lexer:: KEYWORDS
l0_ lexer:: _EXPR_ENDING_TOKENS protected
str l0_ lexer:: OCT_CHARS
str l0_ lexer:: HEX_CHARS