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

(input, pos) -> RuleResult block expression #284

Open
kevinmehall opened this issue Jan 17, 2022 · 0 comments
Open

(input, pos) -> RuleResult block expression #284

kevinmehall opened this issue Jan 17, 2022 · 0 comments
Labels
feature Something not supported that perhaps should be

Comments

@kevinmehall
Copy link
Owner

For advanced use cases, it would be nice to add a PEG expression in which a block of Rust code in the grammar is passed the input and current position, and returns a RuleResult with a new position. Syntax TBD.

This would replace the undocumented ##method() syntax with something more flexible.

@kevinmehall kevinmehall added the feature Something not supported that perhaps should be label Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Something not supported that perhaps should be
Projects
None yet
Development

No branches or pull requests

1 participant