Sha256: 4d3f78331c6f76cf4041efbab85fd3c9d49afb8898c9dbddb31b1f17129bcf83

Contents?: true

Size: 1.78 KB

Versions: 1

Compression:

Stored size: 1.78 KB

Contents

module Antlr4ruby
  # @abstract
  class Recognizer[Symbol, ATNInterpreter]
    EOF: Integer

    @@token_type_map_cache: Hash[Vocabulary, Hash[String, Integer]]
    @@rule_index_map_cache: Hash[Array[String], Hash[String, Integer]]
    @listeners: Array[_ANTLRErrorListener]

    attr_accessor interpreter: ATNInterpreter

    attr_accessor state_number: Integer

    def action: (RuleContext?, Integer, Integer) -> void

    def add_error_listener: (_ANTLRErrorListener) -> void

    def get_atn: -> ATN

    def get_error_header: (RecognitionException) -> String

    def get_error_listener_dispatch: -> _ANTLRErrorListener

    def get_error_listeners: -> Array[_ANTLRErrorListener]

    def get_grammar_file_name: -> String

    def get_input_stream: -> _IntStream

    def get_interpreter: -> ATNInterpreter

    def get_parse_info: -> ParseInfo?

    def get_rule_index_map: -> Hash[String, Integer]

    def get_rule_names: -> Array[String]

    def get_serialized_atn: -> String

    def get_state: -> Integer

    def get_token_factory: -> _TokenFactory[untyped]

    def get_token_names: -> Array[String]

    def get_token_type: -> Integer

    def get_token_type_map: -> Hash[String, Integer]

    def get_vocabulary: -> Vocabulary

    def precpred: (RuleContext, Integer) -> bool

    def remove_error_listener: (_ANTLRErrorListener) -> void

    def remove_error_listeners: -> void

    def sempred: (RuleContext, Integer, Integer) -> bool

    def set_input_stream: (_IntStream) -> void

    def set_interpreter: (ATNInterpreter) -> void

    def set_state: (Integer) -> void

    def set_token_factory: (_TokenFactory[untyped]) -> void

    private

    attr_accessor listeners:  Array[_ANTLRErrorListener]
    
    

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
antlr4ruby-0.1.0 sig/antlr4ruby/recognizer.rbs