I've been migrating to the newest version of ANTLRWorks (and I presume
there must be a new version of ANTLR underlying it).  Several rules
that worked previously, no longer work.

squarecall
        :       (SQUARELEFT (statementnocolon (',' statementnocolon)*)?
SQUARERIGHT)-> statementnocolon*
        ;

Which should match both [a,b,c,d] and [], but only works for the first
form.  In the second form I get a rewrite exception saying the stream
is empty.  Is there an option that used to be default, that I have
off, or does the new version of ANTLR work differently for this?  If I
don't attempt to rewrite it (i.e. get rid of the "->
statementnocolon*") it doesn't cause an error, but I obviously get '['
and ']' in my output.

Any help is appreciated.

Thanks,
S M Bogan

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/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
-~----------~----~----~----~------~----~------~--~---

Reply via email to