Andrzej Borucki
unread,Jan 6, 2013, 3:54:02 AM1/6/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to antlr-di...@googlegroups.com
We have list of terms which is begin and end with term and separate by delimiter, for example
ident , ident, ident, ident
statement ; statement ; statement ; statement
In ANTLR grammar we must write:
ident (',' ident)*
statement (';' statement)*
How simplify it? One proposal is:
ident || ','
statement || ';'