hayleigh-dot-dev / nibble

A string parsing library heavily inspired by elm/parser.
MIT License
51 stars 7 forks source link

🐛 Fix error locations being one token behind #13

Closed MystPi closed 6 months ago

MystPi commented 6 months ago

This fixes the parsers I have found to be one token behind in error positions. I also removed uses of function.compose and function.constant since they are deprecated and replaced them with function literals.

maxdeviant commented 6 months ago

I also removed uses of function.compose and function.constant since they are deprecated and replaced them with function literals.

Came here to fix the same thing, but happy to see someone beat me to it 😄