Change the parser to build and AST and then run the program #78
Replies: 4 comments 1 reply
-
Constructing AST nodes gives os the ability to record which token generated the node, e.g. having alias can be recorded (and the position) and having the handler (i.e. the function implementation) class given to the AST node for later constructing and invocation |
Beta Was this translation helpful? Give feedback.
-
Functions implements abstract class and only provide protected function, to the abstract class can do something before execution, which the implementer shouldn't worry about |
Beta Was this translation helpful? Give feedback.
-
Typecheck with return type |
Beta Was this translation helpful? Give feedback.
-
Consider going to a parser generator instead and use time on error recovery |
Beta Was this translation helpful? Give feedback.
-
Configure the Parser to build an AST instead of during it all in once.
This gives the ability to:
Beta Was this translation helpful? Give feedback.
All reactions