Class: Ibex::Runtime::RepairAdvance

Inherits:
Object
  • Object
show all
Defined in:
lib/json5/generated_parser.rb

Overview

Internal result of simulating reductions followed by one table action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status:, stack:) ⇒ RepairAdvance

Returns a new instance of RepairAdvance.

RBS:

  • (status: :shift | :accept, stack: Array[Integer]) -> void



4617
4618
4619
4620
4621
# File 'lib/json5/generated_parser.rb', line 4617

def initialize(status:, stack:)
  @status = status
  @stack = stack
  freeze
end

Instance Attribute Details

#stackObject (readonly)

Signature:

  • Array[Integer]



4614
4615
4616
# File 'lib/json5/generated_parser.rb', line 4614

def stack
  @stack
end

#statusObject (readonly)

Signature:

  • :shift | :accept



4613
4614
4615
# File 'lib/json5/generated_parser.rb', line 4613

def status
  @status
end