rust-peg
rust-peg copied to clipboard
`(input, pos) -> RuleResult` block expression
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.