Parse tree: all productions typed now, working on resolving type errors