[antlr-interest] Tree grammars with output=AST

Gavin Lambert antlr at mirality.co.nz
Wed Mar 19 03:28:00 PDT 2008


At 22:58 19/03/2008, Thomas Karcher wrote:
 >is it possible to have something like
 >
 >tree grammar TestTree;
 >options {
 >	language=CSharp;
 >	output=AST;
 >	ASTLabelType=CommonTree;
 >}
 >
 >That means "AST rewriting by tree grammar with C# as target
 >language".
 >I'm using ANTLR 3.0.1.

IIRC, "tree grammar" with AST output requires ANTLR v3.1.



More information about the antlr-interest mailing list