Expand description
This module provides definitions for the fundamental types used in a traditional compiler.
This includes items such as Tokens, AST Nodes, and the AST itself. These definitions are meant to be able to be passed around between compilation stages (such as between lexing, parsing, and AST validation). The types that may exist on their own (such as the Lexer and Parser) exist in their own modules
Structs§
- Ast
- External
Function Call - External
Function Node - FuncArg
- IsrNode
- Token
Info - A small wrapper around a
Tokenthat also contains line and column info. This just lets the lexer and parser output meaningful error messages so a user knows where a mistake may have been made.
Enums§
- CallArg
- Func
ArgType - Some power of 2 in the range [8-64] inclusive
- Ingot
- Ring
- Represents a privilege level of an external function or an ISR
- Token
- The fundamental unit of a source code file. These are used to represent the lexemes within a source file