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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address