Sha256: 928b358ec2c44703d77fb7f39cbd011526b8ce57aad5627f3c8d098db08a1a7b

Contents?: true

Size: 772 Bytes

Versions: 1

Compression:

Stored size: 772 Bytes

Contents

# finished
# 已完成
module Antlr4ruby
  class LexerNoViableAltException < RecognitionException
    def initialize(lexer, input, start_index, dead_end_configs)
      super(lexer, input, nil )
      @start_index, @dead_end_configs = start_index, dead_end_configs
    end

    private
    attr_reader :start_index, :dead_end_configs

    public
    def get_dead_end_configs
      @dead_end_configs
    end

    def get_start_index
      @start_index
    end

    def get_input_stream
      super
    end

    def to_s
      symbol = ''
      if start_index >= 0 && start_index < get_input_stream.size
        symbol = get_input_stream.get_text(start_index..start_index)
      end
      "#{self.class.name}(#{symbol})"
    end


  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
antlr4ruby-0.1.0 lib/antlr4ruby/exception/lexer_no_viable_alt_exception.rb