kursjan / petitparser2

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

plus-star-to-infinity #30

Closed merkste closed 5 years ago

merkste commented 6 years ago

Make star and plus parse arbitrary many elements

Before, SmallInteger>>maxVal was used as upper bound in parsing star and plus. This may fail if the input is sufficiently long, even earlier on 32 Bit. Now we use 'inf := Float class>>inifinity' as uppber bound, as i < inf for each integer i.

merkste commented 6 years ago

I rebased this branch on the current master.

merkste commented 6 years ago

Tests failed due to authentication errors and build problems, as far as I can see.

kursjan commented 5 years ago

Looks good, thanks!