[antlr-interest] partial tree rewrites
Benoit Fouletier
benblo+ANTLR at gmail.com
Thu Jul 16 07:10:13 PDT 2009
I'm trying to simplify a rule from:
VAR ID ASSIGN INT
-> VAR ID COLON TYPE["int"] ASSIGN INT
| VAR ID ASSIGN StringValue
-> VAR ID COLON TYPE["string"] ASSIGN StringValue
to something like:
(VAR ID -> VAR ID)
(
ASSIGN INT
-> COLON TYPE["int"] ASSIGN INT
| ASSIGN StringValue
-> COLON TYPE["string"] ASSIGN StringValue
)
Do I have the syntax wrong, or are partial rewrites simply not possible?
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090716/c8a112a4/attachment.html
More information about the antlr-interest
mailing list