Object
Represents a transition on the grammar. “Real goto” means a transition by nonterminal, but this class treats also terminal's. If one is a terminal transition, .ident returns nil.
# File racc/state.rb, line 768 def initialize(ident, sym, from, to) @ident = ident @symbol = sym @from_state = from @to_state = to end
# File racc/state.rb, line 780 def inspect "(#{@from_state.ident}-#{@symbol}->#{@to_state.ident})" end
This page was generated for Ruby 3.1.0
Ruby-doc.org is provided by James Britt and Neurogami. Hack your world. Feed your head. Live curious.
Generated with Ruby-doc Rdoc Generator 0.42.0.