Class: Ibex::LALR::BuildMetrics
- Inherits:
-
Object
- Object
- Ibex::LALR::BuildMetrics
- Defined in:
- lib/ibex/lalr/build_metrics.rb
Overview
Immutable structural measurements from one automaton build. These counts are intended for diagnostics and benchmarks, not parser behavior.
Instance Attribute Summary collapse
-
#canonical_states ⇒ Object
readonly
: Integer?.
-
#construction_states ⇒ Object
readonly
: Integer.
-
#final_states ⇒ Object
readonly
: Integer.
-
#strategy ⇒ Object
readonly
: Symbol.
Instance Method Summary collapse
-
#initialize(construction_states:, canonical_states:, final_states:, strategy:) ⇒ BuildMetrics
constructor
A new instance of BuildMetrics.
Constructor Details
#initialize(construction_states:, canonical_states:, final_states:, strategy:) ⇒ BuildMetrics
Returns a new instance of BuildMetrics.
14 15 16 17 18 19 20 |
# File 'lib/ibex/lalr/build_metrics.rb', line 14 def initialize(construction_states:, canonical_states:, final_states:, strategy:) @construction_states = construction_states @canonical_states = canonical_states @final_states = final_states @strategy = strategy freeze end |
Instance Attribute Details
#canonical_states ⇒ Object (readonly)
: Integer?
9 10 11 |
# File 'lib/ibex/lalr/build_metrics.rb', line 9 def canonical_states @canonical_states end |
#construction_states ⇒ Object (readonly)
: Integer
8 9 10 |
# File 'lib/ibex/lalr/build_metrics.rb', line 8 def construction_states @construction_states end |
#final_states ⇒ Object (readonly)
: Integer
10 11 12 |
# File 'lib/ibex/lalr/build_metrics.rb', line 10 def final_states @final_states end |
#strategy ⇒ Object (readonly)
: Symbol
11 12 13 |
# File 'lib/ibex/lalr/build_metrics.rb', line 11 def strategy @strategy end |