¡@

Home 

java Programming Glossary: commontree

ANTLR: From CommonTree to useful object graph

http://stackoverflow.com/questions/5252429/antlr-from-commontree-to-useful-object-graph

From CommonTree to useful object graph I started using ANTLR today and I've.. something similar to this public Expression createExpr CommonTree ast ... switch ast.getType case SimpleExpressionParser.INT return.. SimpleExpressionParser.PLUS return new Plus createExpr CommonTree ast.getChild 0 recurse createExpr CommonTree ast.getChild 1..