class Racc::SRconflict
def initialize(sid, shift, reduce)
def initialize(sid, shift, reduce) @stateid = sid @shift = shift @reduce = reduce end
def to_s
def to_s sprintf('state %d: S/R conflict rule %d reduce and shift %s', @stateid, @reduce.ruleid, @shift.to_s) end