Class: Antlr4::Runtime::RuleStartState
- Defined in:
- lib/antlr4/runtime/rule_start_state.rb
Constant Summary
Constants inherited from ATNState
ATNState::BASIC, ATNState::BLOCK_END, ATNState::BLOCK_START, ATNState::INITIAL_NUM_TRANSITIONS, 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
-
#is_left_recursive_rule ⇒ Object
Returns the value of attribute is_left_recursive_rule.
-
#stop_state ⇒ Object
Returns the value of attribute stop_state.
Attributes inherited from ATNState
#atn, #next_token_within_rule, #rule_index, #state_number, #transitions
Instance Method Summary collapse
-
#initialize ⇒ RuleStartState
constructor
A new instance of RuleStartState.
- #state_type ⇒ Object
Methods inherited from ATNState
#add_transition, #add_transition_at, #eql?, #hash, #non_greedy_exit_state?, #number_of_transitions, #only_has_epsilon_transitions, #remove_transition, #set_rule_index, #set_transition, #to_s, #transition
Constructor Details
#initialize ⇒ RuleStartState
Returns a new instance of RuleStartState.
7 8 9 10 11 |
# File 'lib/antlr4/runtime/rule_start_state.rb', line 7 def initialize super @is_left_recursive_rule = false @stop_state = nil end |
Instance Attribute Details
#is_left_recursive_rule ⇒ Object
Returns the value of attribute is_left_recursive_rule.
5 6 7 |
# File 'lib/antlr4/runtime/rule_start_state.rb', line 5 def is_left_recursive_rule @is_left_recursive_rule end |
#stop_state ⇒ Object
Returns the value of attribute stop_state.
4 5 6 |
# File 'lib/antlr4/runtime/rule_start_state.rb', line 4 def stop_state @stop_state end |
Instance Method Details
#state_type ⇒ Object
13 14 15 |
# File 'lib/antlr4/runtime/rule_start_state.rb', line 13 def state_type RULE_START end |