Class: Racc::SRconflict
Instance Attribute Summary collapse
- 
  
    
      #reduce  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute reduce.
 - 
  
    
      #shift  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute shift.
 - 
  
    
      #stateid  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute stateid.
 
Instance Method Summary collapse
- 
  
    
      #initialize(sid, shift, reduce)  ⇒ SRconflict 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of SRconflict.
 - #to_s ⇒ Object
 
Constructor Details
#initialize(sid, shift, reduce) ⇒ SRconflict
Returns a new instance of SRconflict.
      937 938 939 940 941  | 
    
      # File 'lib/racc/state.rb', line 937 def initialize(sid, shift, reduce) @stateid = sid @shift = shift @reduce = reduce end  | 
  
Instance Attribute Details
#reduce ⇒ Object (readonly)
Returns the value of attribute reduce.
      945 946 947  | 
    
      # File 'lib/racc/state.rb', line 945 def reduce @reduce end  | 
  
#shift ⇒ Object (readonly)
Returns the value of attribute shift.
      944 945 946  | 
    
      # File 'lib/racc/state.rb', line 944 def shift @shift end  | 
  
#stateid ⇒ Object (readonly)
Returns the value of attribute stateid.
      943 944 945  | 
    
      # File 'lib/racc/state.rb', line 943 def stateid @stateid end  | 
  
Instance Method Details
#to_s ⇒ Object
      947 948 949 950  | 
    
      # File 'lib/racc/state.rb', line 947 def to_s sprintf('state %d: S/R conflict rule %d reduce and shift %s', @stateid, @reduce.ruleid, @shift.to_s) end  |