Class: Racc::RRconflict
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/racc/state.rb |
Class Method Summary
- .new(sid, high, low, tok) ⇒ RRconflict constructor
Instance Attribute Summary
- #high_prec readonly
- #low_prec readonly
- #stateid readonly
- #token readonly
Instance Method Summary
Constructor Details
.new(sid, high, low, tok) ⇒ RRconflict
# File 'lib/racc/state.rb', line 954
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 962
attr_reader :high_prec
#low_prec (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 963
attr_reader :low_prec
#stateid (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 961
attr_reader :stateid
#token (readonly)
[ GitHub ]# File 'lib/racc/state.rb', line 964
attr_reader :token
Instance Method Details
#to_s
[ GitHub ]# File 'lib/racc/state.rb', line 966
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