The view from the bottom
Perl 6 rules tend to act like a recursive-descent parser
Using recursive-descent rules to encode operator precedence in expressions can be tedious and slow
Since expression parsing is common to many languages, PGE now provides a built-in operator-precedence parser.
Interface details are still being worked out, but:
- Create or copy a PGE::OpParse object
- Install it in a lexical pad or global namespace
- Add operator precedence rules to the OpParse object
- Call the <opparse> subrule