Xtreams CardinalityMin Bug?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Xtreams CardinalityMin Bug?

Sean P. DeNigris
Administrator
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