123456789_123456789_123456789_123456789_123456789_

Class: Racc::RRconflict

Relationships & Source Files
Inherits: Object
Defined in: lib/racc/state.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(sid, high, low, tok) ⇒ RRconflict

[ GitHub ]

  
# File 'lib/racc/state.rb', line 958

def initialize(sid, high, low, tok)
  @stateid   = sid
  @high_prec = high
  @low_prec  = low
  @token     = tok
end

Instance Attribute Details

#high_prec (readonly)

[ GitHub ]

  
# File 'lib/racc/state.rb', line 966

attr_reader :high_prec

#low_prec (readonly)

[ GitHub ]

  
# File 'lib/racc/state.rb', line 967

attr_reader :low_prec

#stateid (readonly)

[ GitHub ]

  
# File 'lib/racc/state.rb', line 965

attr_reader :stateid

#token (readonly)

[ GitHub ]

  
# File 'lib/racc/state.rb', line 968

attr_reader :token

Instance Method Details

#to_s

[ GitHub ]

  
# File 'lib/racc/state.rb', line 970

def to_s
  sprintf('state %d: R/R conflict with rule %d and %d on %s',
          @stateid, @high_prec.ident, @low_prec.ident, @token.to_s)
end