A set of rule and position in it’s RHS. Note that the number of pointers is more than rule’s RHS array, because pointer points right edge of the final symbol when reducing.
# File lib/racc/grammar.rb, line 853
853: def before(len)
854: @rule.ptrs[@index - len] or ptr_bug!
855: end
# File lib/racc/grammar.rb, line 837
837: def eql?(ot)
838: @hash == ot.hash
839: end
# File lib/racc/grammar.rb, line 843
843: def head?
844: @index == 0
845: end
# File lib/racc/grammar.rb, line 847
847: def next
848: @rule.ptrs[@index + 1] or ptr_bug!
849: end
# File lib/racc/grammar.rb, line 830
830: def to_s
831: sprintf('(%d,%d %s)',
832: @rule.ident, @index, (reduce?() ? '#' : @symbol.to_s))
833: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.