Added implementation for a visitor

This commit is contained in:
Marvin Kaiser
2019-10-28 16:13:37 +01:00
parent 0a9d702198
commit bc4cc334bd
48 changed files with 740 additions and 790 deletions

View File

@@ -19,6 +19,7 @@ public class Klang {
KlangParser parser = new KlangParser(tokens);
ParseTree tree = parser.parse(); // begin parsing at init rule
System.out.println(tree.toStringTree(parser)); // print LISP-style tree
EvalVisitor visitor = new EvalVisitor();
visitor.visit(tree);
}
}