Parrot/PGE, parsers Parsers, Perl 6 Rules, and the Parrot Grammar Engine #26

Syntactic categories

PGE's operator precedence parser understands the following syntactic categories:

term:                term:...
infix:               infix:+
postfix:             postfix:++
prefix:              prefix:!
circumfix:           "circumfix:( )"
postcircumfix:       "postcircumfix:[ ]"
ternary:             "ternary:? :"

Note that circumfix, postcircumfix, and ternary require two tokens (separated by a space), so generally need to be quoted.

Copyright © 2006 Patrick Michaud