Parsing 'xxxxx' with the expression '"x"{2}' currently only consumes 'xx'. It seems that
CardinalityRangeMin: min
<action: 'CardinalityRangeMin'>
^[:expression | [parser repeat: expression min: min optional:
0]]
should be:
CardinalityRangeMin: min
<action: 'CardinalityRangeMin'>
^[:expression | [parser repeat: expression min: min optional:
PEGInfinity new]]
Cheers,
Sean