Class: Antlr4ruby::ParserInterpreter

Inherits:
Parser show all
Defined in:
lib/antlr4ruby/parser_interpreter.rb

Constant Summary

Constants inherited from Recognizer

Recognizer::EOF

Instance Method Summary collapse

Methods inherited from Parser

#add_contex_to_parse_tree, #add_parse_listener, #consume, #create_terminal_node, #dump_dfa, #enter_recursion_rule, #enter_rule, #get_atn_with_bypass_alts, #get_build_parse_tree, #get_context, #get_current_token, #get_dfa_strings, #get_error_handler, #get_expected_tokens, #get_expected_tokens_within_current_rule, #get_input_stream, #get_invoking_context, #get_parse_info, #get_parse_listeners, #get_precedence, #get_rule_context, #get_rule_index, #get_rule_invocation_stack, #get_source_name, #get_syntax_error_count, #get_token_factory, #get_token_stream, #is_expected_token, #is_matched_eof?, #match, #match_wildcard, #notify_error_listeners, #precpred, #push_new_recursion_context, #remove_parse_listener, #remove_parse_listeners, #reset, #set_build_parse_tree, #set_context, #set_error_handler, #set_input_stream, #set_profile, #set_token_factory, #set_token_stream, #unroll_recursion_contexts

Methods inherited from Recognizer

#action, #add_error_listener, #get_atn, #get_error_header, #get_error_listener_dispatch, #get_error_listeners, #get_grammar_file_name, #get_input_stream, #get_interpreter, #get_parse_info, #get_rule_index_map, #get_rule_names, #get_serialized_atn, #get_state, #get_token_factory, #get_token_names, #get_token_type, #get_token_type_map, #get_vocabulary, #precpred, #remove_error_listener, #remove_error_listeners, #sempred, #set_input_stream, #set_interpreter, #set_state, #set_token_factory

Constructor Details

#initialize(grammar_file_name, vocabulary, rule_names, atn, input) ⇒ ParserInterpreter



4
5
6
7
8
# File 'lib/antlr4ruby/parser_interpreter.rb', line 4

def initialize(grammar_file_name, vocabulary, rule_names, atn, input)
  super(input)
  @grammar_file_name, @atn, @rule_names, @vocabulary, = grammar_file_name, atn, rule_names, vocabulary
  # number_of_decisions = todo

end