[antlr-interest] CommonTree & Tree grammar versus DIY

Andy Tripp antlr at jazillian.com
Mon Aug 18 07:20:11 PDT 2008


Gerald Rosenberg wrote:

> What is missing is a code generation step that would generate the bodies 
> of the *create*, *copy*, *insert*, *delete*, and *find *methods specific 
> to a particular AST node structure.  This is basically the same 
> operation used in the generation of a tree-walker. 

There's no need for that. The AST is just a tree data structure,
the various create, copy, insert, and delete operations work fine
regardless of the "shape of the AST" (i.e. the grammar).


More information about the antlr-interest mailing list