Parser Struct Reference
Token parser state. More...
Data Fields | |
KrkToken | current |
Token to be parsed. | |
KrkToken | previous |
Last token matched, consumed, or advanced over. | |
char | hadError |
Flag indicating if the parser encountered an error. | |
unsigned int | eatingWhitespace |
Depth of whitespace-ignoring parse functions. | |
Detailed Description
Token parser state.
The parser is fairly simplistic, requiring essentially no lookahead. 'previous' is generally the currently-parsed token: whatever was matched by match. 'current' is the token to be parsed, and can be examined with check.
Definition at line 56 of file compiler.c.
The documentation for this struct was generated from the following file:
- src/compiler.c