kursjan / petitparser2

A high-performance top-down parser
MIT License
41 stars 19 forks source link

Optimized token parsing bug #38

Closed ronsaldo closed 5 years ago

ronsaldo commented 5 years ago

The following example is failing to parser:

|parser| parser := #letter asPParser, (#letter asPParser / #digit asPParser) star, $: asPParser token: PP2Token. parser optimize parse: 'a:'

kursjan commented 5 years ago

Thanks for reporting, should be fixed now.