We need to implement an Abstract Syntax Tree (AST) to represent the syntax of the language we're compiling. The AST will be the foundation for the parser and semantic analyzer. This issue involves creating the AST structure and basic nodes that correspond to the language's grammar.
Tasks:
Create a new header file for the AST (e.g., ast.h).
Define the structure of the AST nodes.
Implement basic AST nodes for different language constructs (e.g., expressions, statements).
Add functions to create, manipulate, and traverse the AST.
Additional Information:
The AST will play a crucial role in parsing and analyzing the code, so it should be designed to closely match the language's grammar.
We need to implement an Abstract Syntax Tree (AST) to represent the syntax of the language we're compiling. The AST will be the foundation for the parser and semantic analyzer. This issue involves creating the AST structure and basic nodes that correspond to the language's grammar.
Tasks:
Additional Information: