Parent

Racc::Grammar::PrecedenceDefinitionEnv

Attributes

reverse[R]

Public Class Methods

new(g) click to toggle source
     # File lib/racc/grammar.rb, line 363
363:       def initialize(g)
364:         @grammar = g
365:         @prechigh_seen = false
366:         @preclow_seen = false
367:         @reverse = false
368:       end

Public Instance Methods

higher() click to toggle source
     # File lib/racc/grammar.rb, line 372
372:       def higher
373:         if @prechigh_seen
374:           raise CompileError, "prechigh used twice"
375:         end
376:         @prechigh_seen = true
377:       end
left(*syms) click to toggle source
     # File lib/racc/grammar.rb, line 389
389:       def left(*syms)
390:         @grammar.declare_precedence :Left, syms.map {|s| @grammar.intern(s) }
391:       end
lower() click to toggle source
     # File lib/racc/grammar.rb, line 379
379:       def lower
380:         if @preclow_seen
381:           raise CompileError, "preclow used twice"
382:         end
383:         if @prechigh_seen
384:           @reverse = true
385:         end
386:         @preclow_seen = true
387:       end
nonassoc(*syms) click to toggle source
     # File lib/racc/grammar.rb, line 397
397:       def nonassoc(*syms)
398:         @grammar.declare_precedence :Nonassoc, syms.map {|s| @grammar.intern(s)}
399:       end
right(*syms) click to toggle source
     # File lib/racc/grammar.rb, line 393
393:       def right(*syms)
394:         @grammar.declare_precedence :Right, syms.map {|s| @grammar.intern(s) }
395:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.