Module clue_core::parser

source ·
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§

Enums§

  • An enum representing all the possible complex tokens that can be parsed such as functions, if statements, variables, tables etc.

Functions§

  • Parses a list of tokens into an expression Takes a list of Tokens, a filename, and Options Returns an expression and statics as a string

Type Aliases§