Dashboard > ANTLR 3 > ... > To implement > support output=AST in tree grammars
  ANTLR 3 Log In | Sign Up   View a printable version of the current page.  
  support output=AST in tree grammars
Added by Terence Parr, last edited by Terence Parr on Jul 27, 2006  (view change)
Labels: 

Need to be able to do tree rewrites.

Turn off set token boundaries and add create(AST node) which is dup. Return incoming tree if none set.

during AST->AST, what does

e : expr -> expr expr ;

do? Should dup at least one expr, right?

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.1 Build:#806 May 06, 2007) - Bug/feature request - Contact Administrators