kevinmehall/rust-peg

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

kevinmehall opened this issue · 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.