Class: Racc::RRconflict
Instance Attribute Summary collapse
- 
  
    
      #high_prec  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute high_prec.
 - 
  
    
      #low_prec  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute low_prec.
 - 
  
    
      #stateid  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute stateid.
 - 
  
    
      #token  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute token.
 
Instance Method Summary collapse
- 
  
    
      #initialize(sid, high, low, tok)  ⇒ RRconflict 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of RRconflict.
 - #to_s ⇒ Object
 
Constructor Details
#initialize(sid, high, low, tok) ⇒ RRconflict
Returns a new instance of RRconflict.
      954 955 956 957 958 959  | 
    
      # 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 ⇒ Object (readonly)
Returns the value of attribute high_prec.
      962 963 964  | 
    
      # File 'lib/racc/state.rb', line 962 def high_prec @high_prec end  | 
  
#low_prec ⇒ Object (readonly)
Returns the value of attribute low_prec.
      963 964 965  | 
    
      # File 'lib/racc/state.rb', line 963 def low_prec @low_prec end  | 
  
#stateid ⇒ Object (readonly)
Returns the value of attribute stateid.
      961 962 963  | 
    
      # File 'lib/racc/state.rb', line 961 def stateid @stateid end  | 
  
#token ⇒ Object (readonly)
Returns the value of attribute token.
      964 965 966  | 
    
      # File 'lib/racc/state.rb', line 964 def token @token end  | 
  
Instance Method Details
#to_s ⇒ Object
      966 967 968 969  | 
    
      # 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  |