CalcParser parser = new CalcParser(lexer);
// Parse the input expression
parser.expr();
CommonAST t = (CommonAST)parser.getAST();
// Print the resulting tree out in LISP notation
System.out.println(t.toStringList());
CalcTreeWalker walker = new CalcTreeWalker();
// Traverse the tree created by the parser
walker.expr(t);
t = (CommonAST)walker.getAST();
System.out.println(t.toStringList());