Modifying Parser to Construct AST
Recall our WhileParser.scala
- each function returned unit (void) type
Now: each function
- extracts information from tokens
- obtains information from recursive calls
- returns a new tree.scala node
Result: ParserTrees.scala