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.

expression(PMC mob)

The expression subroutine implements the Perl6::Grammar <expression> subrule. It accepts a match object representing the current state of the parse, passes the match object to the operator precedence parser to obtain an expression, and returns the result to the caller.

listop_expression

Parse a listop expression -- i.e., the tokens that follow a listop. This limits the parse to tokens that are tighter than the listop precedence level, nominally indicated by infix:<==.


parrot