[antlr-interest] Modification of Node Attributes using Tree Grammar
Niall Gormley
ngormley at hotmail.com
Thu Jun 13 09:40:21 PDT 2002
Hi,
Is it possible to use a Tree Grammar to modify Node attributes?
The node "i" is getting modified buy the call to "setVariantType" but I
can't seem to get it copied to the output AST for the dims expression. So
the real question might be, how can I get source node "i" to end up in the
output expression?
dims!
: #( LITERAL_DIM i:IDENT )
{
i.setVariantType(0);
#dims = #( #[LITERAL_DIM], #(i));
}
;
Thanks Again,
Niall
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list