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

Consider Parser0 #221

Open
garyb opened this issue Mar 20, 2023 · 1 comment
Open

Consider Parser0 #221

garyb opened this issue Mar 20, 2023 · 1 comment
Labels
type: enhancement A new feature or addition.

Comments

@garyb
Copy link
Member

garyb commented Mar 20, 2023

I've recently used cats-parse a bit, and in there they split parsers into Parser and Parser0, where Parser0 is reserved for parsers that can succeed without consuming any input.

It wasn't an enjoyable experience figuring out how to use it at first (although that was mostly for Scala reasons than anything else - no typed holes, things being located on companion objects vs object methods, etc.), but I ended up thinking it's a pretty good idea.

This probably relates somewhat to #202, but involves slightly less reimagining.

@garyb garyb added the type: enhancement A new feature or addition. label Mar 20, 2023
@jamesdbrock
Copy link
Member

Interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A new feature or addition.
Development

No branches or pull requests

2 participants