-
Notifications
You must be signed in to change notification settings - Fork 6
Compiler Phases and Intermediate Representation
Christopher Diggins edited this page Aug 13, 2023
·
1 revision
The Plato compiler has multiple passes and intermediate representations.
-
ParserInput- wraps the source code strings with a line/column lookup table. -
ParserNode- A linked list of structures with labels and indexes into source created by specific rules in grammar. -
ParserTreeNode- A tree of parser nodes generated from the list ofParserNodestructures. -
CstNode- A set of strongly typed structures representing the Concrete Syntax Tree auto-generated from the grammar . -
AstNode- An Abstract Syntax Tree which represent the syntax in generic and simplified format. -
Symbol- First level representation of semantics, created during name resolution. Does not resolve overloaded functions.