Method: Racc::Rule#initialize
- Defined in:
- lib/racc/grammar.rb
#initialize(target, syms, act) ⇒ Rule
Returns a new instance of Rule.
608 609 610 611 612 613 614 615 616 617 618 619 620 621 |
# File 'lib/racc/grammar.rb', line 608 def initialize(target, syms, act) @target = target @symbols = syms @action = act @alternatives = [] @ident = nil @hash = nil @ptrs = nil @precedence = nil @specified_prec = nil @null = nil @useless = nil end |