Mike Gering wrote:

Gavin,

Thanks for the suggestion, but no value of k will work because the grammar accepts an optional list of tokens between (STAR simple_name)* and "b". For example:
        x*x*x*y/y/y*z
should be accepted. The series of slash terms can be arbitrarily long or absent.
I think that you want:

a
         : (STAR simple_name )+ (SLASH simple_name)*
         |
(SLASH simple_name)*
         ;

If you can use ANTLR 3.1 instead you will find this a lot easier.

Jim



--~--~---------~--~----~------------~-------~--~----~
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

Reply via email to