Class: Rly::YaccProduction

Inherits:
Object
  • Object
show all
Defined in:
lib/rly/parse/yacc_production.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lexerObject

Returns the value of attribute lexer.



3
4
5
# File 'lib/rly/parse/yacc_production.rb', line 3

def lexer
  @lexer
end

#parserObject

Returns the value of attribute parser.



3
4
5
# File 'lib/rly/parse/yacc_production.rb', line 3

def parser
  @parser
end

#sliceObject

Returns the value of attribute slice.



3
4
5
# File 'lib/rly/parse/yacc_production.rb', line 3

def slice
  @slice
end

#stackObject

Returns the value of attribute stack.



3
4
5
# File 'lib/rly/parse/yacc_production.rb', line 3

def stack
  @stack
end