Expand description
The parser is the third step of the compilation process. It takes the tokens from the scanner and converts them into an AST (Abstract Syntax Tree).
The parser is a recursive descent parser, which means that it uses a recursive function to parse
the tokens. This function is called parse_tokens
and is the entry point for the parser.
Structs§
- A code block.
Enums§
- An enum representing all the possible complex tokens that can be parsed such as functions, if statements, variables, tables etc.
Functions§
Type Aliases§
- A list of
ComplexToken
s, which is the AST. - Function arguments, a list of identifiers with optional default values. used in function signatures.