Class: Antlr4ruby::ATN

Inherits:
Object
  • Object
show all
Defined in:
lib/antlr4ruby/atn/atn.rb

Constant Summary collapse

INVALID_ALT_NUMBER =
0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(grammar_type, max_token_type) ⇒ ATN

Returns a new instance of ATN.



9
10
11
# File 'lib/antlr4ruby/atn/atn.rb', line 9

def initialize(grammar_type, max_token_type)
  @grammar_type, @max_token_type = grammar_type, max_token_type
end

Instance Attribute Details

#decision_to_stateObject (readonly)

Returns the value of attribute decision_to_state.



5
6
7
# File 'lib/antlr4ruby/atn/atn.rb', line 5

def decision_to_state
  @decision_to_state
end

#grammar_typeObject (readonly)

Returns the value of attribute grammar_type.



5
6
7
# File 'lib/antlr4ruby/atn/atn.rb', line 5

def grammar_type
  @grammar_type
end

#lexer_actionsObject

Returns the value of attribute lexer_actions.



7
8
9
# File 'lib/antlr4ruby/atn/atn.rb', line 7

def lexer_actions
  @lexer_actions
end

#max_token_typeObject (readonly)

Returns the value of attribute max_token_type.



5
6
7
# File 'lib/antlr4ruby/atn/atn.rb', line 5

def max_token_type
  @max_token_type
end

#mode_name_to_start_stateObject (readonly)

Returns the value of attribute mode_name_to_start_state.



5
6
7
# File 'lib/antlr4ruby/atn/atn.rb', line 5

def mode_name_to_start_state
  @mode_name_to_start_state
end

#mode_to_start_stateObject (readonly)

Returns the value of attribute mode_to_start_state.



5
6
7
# File 'lib/antlr4ruby/atn/atn.rb', line 5

def mode_to_start_state
  @mode_to_start_state
end

#rule_to_start_stateObject

Returns the value of attribute rule_to_start_state.



7
8
9
# File 'lib/antlr4ruby/atn/atn.rb', line 7

def rule_to_start_state
  @rule_to_start_state
end

#rule_to_stop_stateObject

Returns the value of attribute rule_to_stop_state.



7
8
9
# File 'lib/antlr4ruby/atn/atn.rb', line 7

def rule_to_stop_state
  @rule_to_stop_state
end

#rule_to_token_typeObject

Returns the value of attribute rule_to_token_type.



7
8
9
# File 'lib/antlr4ruby/atn/atn.rb', line 7

def rule_to_token_type
  @rule_to_token_type
end

#statesObject (readonly)

Returns the value of attribute states.



5
6
7
# File 'lib/antlr4ruby/atn/atn.rb', line 5

def states
  @states
end

Instance Method Details

#add_state(state) ⇒ Object



17
18
19
# File 'lib/antlr4ruby/atn/atn.rb', line 17

def add_state(state)
  # todo

end

#define_decision_state(state) ⇒ Object



25
26
27
# File 'lib/antlr4ruby/atn/atn.rb', line 25

def define_decision_state(state)
  # todo

end

#get_decision_state(decision) ⇒ Object



29
30
31
# File 'lib/antlr4ruby/atn/atn.rb', line 29

def get_decision_state(decision)
  # todo

end

#get_expected_tokens(state_number, context) ⇒ Object



37
38
39
# File 'lib/antlr4ruby/atn/atn.rb', line 37

def get_expected_tokens(state_number, context)
  # todo

end

#get_number_of_decisionsObject



33
34
35
# File 'lib/antlr4ruby/atn/atn.rb', line 33

def get_number_of_decisions
  # todo

end

#next_tokens(state, ctx) ⇒ Object



13
14
15
# File 'lib/antlr4ruby/atn/atn.rb', line 13

def next_tokens(state, ctx)
  # todo

end

#remove_state(state) ⇒ Object



21
22
23
# File 'lib/antlr4ruby/atn/atn.rb', line 21

def remove_state(state)
  # todo

end