Class: Racc::SRconflict
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/racc/state.rb |
Class Method Summary
- .new(sid, shift, reduce) ⇒ SRconflict constructor
Instance Attribute Summary
Instance Method Summary
Constructor Details
.new(sid, shift, reduce) ⇒ SRconflict
Instance Attribute Details
#reduce (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 942
attr_reader :reduce
#shift (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 941
attr_reader :shift
#stateid (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 940
attr_reader :stateid
Instance Method Details
#to_s
[ GitHub ]# File 'lib/racc/state.rb', line 944
def to_s sprintf('state %d: S/R conflict rule %d reduce and shift %s', @stateid, @reduce.ruleid, @shift.to_s) end