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 949
attr_reader :reduce
#shift (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 948
attr_reader :shift
#stateid (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 947
attr_reader :stateid
Instance Method Details
#to_s
[ GitHub ]# File 'lib/racc/state.rb', line 951
def to_s sprintf('state %d: S/R conflict rule %d reduce and shift %s', @stateid, @reduce.ruleid, @shift.to_s) end