Class Dhaka::PrecedenceBuilder
In: ../trunk/lib/dhaka/grammar/grammar.rb
Parent: Object

The precedence builder defines three methods, left, right and nonassoc. These accept arrays of grammar symbols all of which have the same precedence level and associativity.

See the arithmetic precedence grammar in the test suites for an example of how this works.

[Validate]