Vocabularypeg.
parsersInputsOutputsWord descriptionReturns a parser that matches an exact repetition of the input parser.
ExamplesUSING: peg peg.parsers prettyprint ;
"aaa" "a" token 4 exactly-n parse => exception
USING: peg peg.parsers prettyprint ;
"aaaa" "a" token 4 exactly-n parse .
V{ "a" "a" "a" "a" }
See alsoat-least-n,
at-most-n,
from-m-to-nDefinition