Hi,
I am trying to rewrite this tree so that the 'or' always appears, with either
one or more of the nodes. Unfortunately I get a runtime error saying that the
stream is empty RewriteEmptyStreamException.
I am using csharp2.
orExpr : andExpr (or='or' andExpr)*
-> {null != or}? ^('or' andExpr+)
-> ^('or' andExpr)
;
I actually just wanted
orExpr : andExpr ('or' andExpr)* -> ^('or' andExpr+);
I thought this would work, but it doesn't.
Any work arounds?
Thanks
Regards
Craig.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---