|parrotcode: Parsing of <expression> and <listop_expression> subrules|
|Contents | Language Implementations | Perl6|
expression.pir - Parsing of <expression> and <listop_expression> subrules
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.
expressionsubroutine 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.