Class: Racc::Goto
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/racc/state.rb |
Overview
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.
Class Method Summary
- .new(ident, sym, from, to) ⇒ Goto constructor
Instance Attribute Summary
- #from_state readonly
- #ident readonly
- #symbol readonly
- #to_state readonly
Instance Method Summary
Constructor Details
.new(ident, sym, from, to) ⇒ Goto
Instance Attribute Details
#from_state (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 781
attr_reader :from_state
#ident (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 779
attr_reader :ident
#symbol (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 780
attr_reader :symbol
#to_state (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 782
attr_reader :to_state