Spirit kleene/plus finite bounds
Michael Powell <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <CAMEoF_EXEX9rF8ExxvAYkM6eyxjK4YikcqTC_z2GG5MKfnzLzg@mail.gmail.com> |
Hello,
I am familiar with the kleene and plus operators in parser grammars,
per se. Is there a way to constrain the upper bounds?
For example, in a Regex, I can specify a pattern appears N to M times,
or just N times:
MY_PATTERN{n,m}
MY_PATTERN{n}
With kleene, that would be 0 to how many times; and plus, 1 to how many times.
Thanks!
Cheers,
Michael Powell
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot