implement new for simplified grammar

This commit is contained in:
2019-10-28 21:52:32 +01:00
parent a6c732e99c
commit 13d38a53aa
2 changed files with 22 additions and 2 deletions

View File

@@ -19,7 +19,8 @@ public class Klang {
KlangParser parser = new KlangParser(tokens);
ParseTree tree = parser.parse(); // begin parsing at init rule
EvalVisitor visitor = new EvalVisitor();
visitor.visit(tree);
Visitor visitor = new Visitor();
int result = visitor.visit(tree);
System.out.println(result);
}
}