[antlr-interest] Shorthand notation for separated lists
Jan Finis
finis at in.tum.de
Thu Jan 26 07:47:09 PST 2012
Hi,
is there a way to write an optional list of tokens separated by a
separator token (like function parameters) more concise than this:
[ id ("," id)* ]
if not, I would suggest introducing such a notation, because such things
are really frequently used. For example:
(id ** ",") is automatically expanded to [ id ("," id)* ] and
(id ++ ",") is automatically expaned to id ("," id)*
Regards,
Jan
More information about the antlr-interest
mailing list