Perl 6 Compiler Perl 6 Compiler Status and the Parrot Compiler Toolkit #22

Expressions (bottom up)

The <expression> subrule is special.

<expression> is a Parrot sub that simply dispatches to the operator precedence parser.

The operator precedence parser performs a "bottom-up" (shift/reduce) parse.

Bottom-up parsing can be more efficient than top-down (recursive descent) parsing.

Copyright © 2006 Patrick Michaud