j-mie6 / gigaparsec

Refreshed parsec-style library for compatibility with Scala parsley
https://j-mie6.github.io/gigaparsec/
BSD 3-Clause "New" or "Revised" License
16 stars 4 forks source link

Refactor: Registers to State #38

Closed j-mie6 closed 7 months ago

j-mie6 commented 7 months ago

This PR brings the stateful parsing API into compliance with parsley, which has abandoned the name "register" in favour of stateful references. This is much less alien terminology. While the operations are named slightly differently from the usual Haskell naming, they are consistent with the parsley naming and also distinguish them from things like the State monad.