[antlr-interest] Newbie question

Yaron Kretchmer YKRETCHM at altera.com
Thu Aug 18 23:39:17 PDT 2005


Hi All.
I've started playing around with Antlr, and was wondering if you can
point me to where I can find documentation on the following:
*) An example of a rule to match a regular expression where the number
of occurrences is fixed , and not zero-or-more or one-or-more (say like
[0|1]{4} in PERL)
*) An example of a rule to match a regular expression where the number
of occurrences is a variable that we've parsed from the input stream
(like [0|1]{$length} in PERL.

Yaron





More information about the antlr-interest mailing list