parsec icon indicating copy to clipboard operation
parsec copied to clipboard

Track consumed token count in ParserState (and ParseError)

Open phadej opened this issue 2 years ago • 0 comments

Relying on (user settable) SourcePos for deciding which parse is longer (in mergeError) is unreliable.

FWIW megaparsec tracks the count.

The #96 is different, as it adds character count to SourcePos. Yet, both changes are breaking ones, as ErrorPos "constructors" are part of public interface.

phadej avatar Sep 11 '23 11:09 phadej