Class
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.
Attributes
Read
No documentation available
Read
No documentation available
Read
No documentation available
Read
No documentation available
Class Methods
lib/racc/state.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/racc/state.rb, line 768
def initialize(ident, sym, from, to)
@ident = ident
@symbol = sym
@from_state = from
@to_state = to
end
No documentation available
Instance Methods
#
lib/racc/state.rb
View on GitHub
# File tmp/rubies/ruby-3.2.0/lib/racc/state.rb, line 780
def inspect
"(#{@from_state.ident}-#{@symbol}->#{@to_state.ident})"
end
No documentation available