d-u-d-e / c-compiler

GNU General Public License v3.0
3 stars 0 forks source link

Write an AST class to manage abstract syntax trees #7

Open d-u-d-e opened 2 weeks ago

d-u-d-e commented 2 weeks ago

We want to manage ASTs easily and efficiently.

albertoursino commented 1 week ago

The intended class is at compiler\parser\ast.py where we define the ASTNode class (Abstract class denoting a generic AST node.) and all types of AST nodes which inherit from it.

Note: an ASTNode, in turn, inherits from TreeNote.