haskell / haskell/parsec

Track consumed token count in ParserState (and ParseError)

Open
#175 0 comments 0 reactions 0 assignees View on GitHub
pvp:major
Dominant language
Haskell
Stars
892
Forks
99
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.