Class: Rly::YaccProduction
- Inherits:
-
Object
- Object
- Rly::YaccProduction
- Defined in:
- lib/rly/parse/yacc_production.rb
Instance Attribute Summary collapse
-
#lexer ⇒ Object
Returns the value of attribute lexer.
-
#parser ⇒ Object
Returns the value of attribute parser.
-
#slice ⇒ Object
Returns the value of attribute slice.
-
#stack ⇒ Object
Returns the value of attribute stack.
Instance Method Summary collapse
-
#initialize(slice, stack = nil) ⇒ YaccProduction
constructor
A new instance of YaccProduction.
Constructor Details
#initialize(slice, stack = nil) ⇒ YaccProduction
Returns a new instance of YaccProduction.
5 6 7 8 |
# File 'lib/rly/parse/yacc_production.rb', line 5 def initialize(slice, stack=nil) @slice = slice @stack = stack end |
Instance Attribute Details
#lexer ⇒ Object
Returns the value of attribute lexer.
3 4 5 |
# File 'lib/rly/parse/yacc_production.rb', line 3 def lexer @lexer end |
#parser ⇒ Object
Returns the value of attribute parser.
3 4 5 |
# File 'lib/rly/parse/yacc_production.rb', line 3 def parser @parser end |
#slice ⇒ Object
Returns the value of attribute slice.
3 4 5 |
# File 'lib/rly/parse/yacc_production.rb', line 3 def slice @slice end |
#stack ⇒ Object
Returns the value of attribute stack.
3 4 5 |
# File 'lib/rly/parse/yacc_production.rb', line 3 def stack @stack end |