Sha256: a24350cb6dab209818d0d03910dc4cce20b23f1a71b20d3584577496d66edcd7

Contents?: true

Size: 847 Bytes

Versions: 1

Compression:

Stored size: 847 Bytes

Contents

module Antlr4ruby
  interface _Vocabulary
    def get_max_token_type: -> Integer

    def get_literal_name: (Integer) -> String

    def get_symbolic_name: (Integer) -> String

    def get_display_name: (Integer) -> String
  end

  class Vocabulary
    EMPTY_NAMES: Array[String]

    EMPTY_VOCABULARY: Vocabulary

    include _Vocabulary

    def self.from_token_names: (Array[String]) -> Vocabulary

    attr_reader display_names: Array[String]
    attr_reader literal_names: Array[String]

    attr_reader max_token_type: Integer
    attr_reader symbolic_names: Array[String]

    def initialize: (Array[String], Array[String], Array[String]) -> void

    # def display_name: (Integer) -> String
    #
    # def literal_name: (Integer) -> String
    #
    # def symbolic_name: (Integer) -> String

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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