Parrot Compiler Tools Parrot Compiler Tools #36

Changes to grammar for bottom-up example

Define a grammar rule with an is optable trait, as the entry point into the bottom-up parser.

rule expression is optable { ... }

Define a "term:" token with an is parsed trait identifying the rule to use for parsing terms:

proto 'term:' 
    is parsed(&term) 
    is precedence('=') 
    { ... }
Copyright © 2007 Patrick Michaud