Class: RuleStopState
Overview
The last node in the ATN for a rule, unless that rule is the start symbol.
In that case, there is one transition to EOF. Later, we might encode
references to all calls to this rule to compute FOLLOW sets for
error handling.
Constant Summary
Constants inherited from ATNState
ATNState::BASIC, ATNState::BLOCK_END, ATNState::BLOCK_START, ATNState::INVALID_STATE_NUMBER, ATNState::INVALID_TYPE, ATNState::LOOP_END, ATNState::PLUS_BLOCK_START, ATNState::PLUS_LOOP_BACK, ATNState::RULE_START, ATNState::RULE_STOP, ATNState::STAR_BLOCK_START, ATNState::STAR_LOOP_BACK, ATNState::STAR_LOOP_ENTRY, ATNState::TOKEN_START
Instance Attribute Summary collapse
-
#stopState ⇒ Object
Returns the value of attribute stopState.
Attributes inherited from ATNState
#atn, #epsilonOnlyTransitions, #nextTokenWithinRule, #ruleIndex, #serializationNames, #stateNumber, #stateType, #transitions
Instance Method Summary collapse
-
#initialize ⇒ RuleStopState
constructor
A new instance of RuleStopState.
Methods inherited from ATNState
#==, #addTransition, #hash, #inspect, #isNonGreedyExitState, #onlyHasEpsilonTransitions, #to_s
Constructor Details
#initialize ⇒ RuleStopState
Returns a new instance of RuleStopState.
162 163 164 165 |
# File 'lib/antlr4/atn/ATNState.rb', line 162 def initialize super() self.stateType = ATNState::RULE_STOP end |
Instance Attribute Details
#stopState ⇒ Object
Returns the value of attribute stopState.
161 162 163 |
# File 'lib/antlr4/atn/ATNState.rb', line 161 def stopState @stopState end |