parser.setFilename("<stdin>");
// Parse the input expression
parser.expr();
CommonAST t = (CommonAST)parser.getAST();
// Print the resulting tree out in LISP notation
System.out.println(t.toStringTree());
CalcTreeWalker walker = new CalcTreeWalker();
// Traverse the tree created by the parser
float r = walker.expr(t);
System.out.println("value is "+r);
}