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

Parsable::parse_fn must be removed #17

Open
vaivaswatha opened this issue Dec 14, 2023 · 0 comments
Open

Parsable::parse_fn must be removed #17

vaivaswatha opened this issue Dec 14, 2023 · 0 comments

Comments

@vaivaswatha
Copy link
Owner

The only reason it exists is because we need a ParserFn to be stored in Dialect::ops, and I couldn't figure out a way to store a pointer to a function that takes no argument and returns Box<dyn Parser<StateStream<'a>, Output = Self::Parsed, PartialState = ()> + 'a> . So ParserFn takes a dummy &() argument, and hence Parsable::parser_fn exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant