Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text.Gigaparsec.Token support #8

Open
j-mie6 opened this issue Sep 6, 2023 · 0 comments
Open

Text.Gigaparsec.Token support #8

j-mie6 opened this issue Sep 6, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request minor This requires a PVP minor bump

Comments

@j-mie6
Copy link
Owner

j-mie6 commented Sep 6, 2023

This one is a big one: we want to support the whole parsley.token package, including the description ADTs and the generated parsers. This is quite an undertaking, and much inspiration can be drawn from parsley, as the bare implementations are preserved in the test suites at least. I suspect there will be challenges here:

  • parsley uses a global register to track the current space implementation for context-dependent whitespace, we don't have such a mechanism, so we'll need to actually support the embedding of IORefs into Reg with all the unsafe functions that come with it, sad but true. In this sense, the Lexer record will store an IORef inside.
@j-mie6 j-mie6 added the enhancement New feature or request label Nov 12, 2023
@j-mie6 j-mie6 self-assigned this Dec 3, 2023
j-mie6 added a commit that referenced this issue Jan 21, 2024
Adds partial support for lexing, towards #8.
j-mie6 added a commit that referenced this issue Feb 3, 2024
This PR introduces configuration to the lexer to allow for the
adjustment of error messages generated from within the `Lexer` type.
This makes further progress towards #8
@j-mie6 j-mie6 added the minor This requires a PVP minor bump label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request minor This requires a PVP minor bump
Projects
None yet
Development

No branches or pull requests

1 participant