[antlr-interest] Matching lists of items

Jamie Penney jpen054 at ec.auckland.ac.nz
Sun Feb 10 17:51:02 PST 2008


Hi All,
If I have a list of expressions that are separated by a separator 
character (say ','), is there a concise way of matching this? So far I 
am using the following:

expression (',' expression)*

but it seems quite verbose. Is there a shortcut for this? It gets quite 
cumbersome once the expression part gets large.

Thanks,
Jamie Penney


More information about the antlr-interest mailing list