Class: ParseStack::Link

Inherits:
Struct
  • Object
show all
Defined in:
lib/rpdf2txt-rockit/glr_parser.rb,
lib/rpdf2txt-rockit/glr_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#productionObject

Returns the value of attribute production

Returns:

  • (Object)

    the current value of production



275
276
277
# File 'lib/rpdf2txt-rockit/glr_parser.rb', line 275

def production
  @production
end

#stackObject

Returns the value of attribute stack

Returns:

  • (Object)

    the current value of stack



275
276
277
# File 'lib/rpdf2txt-rockit/glr_parser.rb', line 275

def stack
  @stack
end

#treeObject

Returns the value of attribute tree

Returns:

  • (Object)

    the current value of tree



275
276
277
# File 'lib/rpdf2txt-rockit/glr_parser.rb', line 275

def tree
  @tree
end

Instance Method Details

#inspectObject



277
278
279
# File 'lib/rpdf2txt-rockit/glr_parser.rb', line 277

def inspect
  "-#{tree.inspect}->#{stack.state.inspect}"
end