rust-peg icon indicating copy to clipboard operation
rust-peg copied to clipboard

`(input, pos) -> RuleResult` block expression

Open kevinmehall opened this issue 2 years ago • 0 comments

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 avatar Jan 17 '22 20:01 kevinmehall