TITLE ^

expression.pir - Parsing of <expression> and <listop_expression> subrules

DESCRIPTION ^

This file contains the grammar subrules for <expression> and <listop_expression>. These have special parsing requirements, and are therefore written in PIR instead of as a standard Perl 6 rule statement.

EXPR([tighter])

The EXPR method implements the Perl6::Grammar <EXPR> subrule. It forwards the match object (invocant) to the operator precedence parser to obtain an expression, and returns the result to the caller. Any tighter option is passed as a corresponding option to the operator precedence parser, which parses expressions of tighter precedence.

(FIXME Parrot bug RT#53296 prevents us from using :optional on the tighter argument along with :slurpy :named parameters, so we use :multi as a temporary workaround.)


parrot