Sha256: 95217140eee8b2a924569f3273a9c4d085cb2ccee0558682612f5f833d33ad42

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

# finished
module Antlr4ruby
  class FailedPredicateException < RecognitionException

    def initialize(recognizer, predicate, message)
      super(recognizer, recognizer.get_input_stream, recognizer.ctx, message || "failed predicate: #{predicate}")
    end

    private
    attr_reader :rule_index, :predicate_index, :predicate


    public
    def get_rule_index
      @rule_index
    end

    def get_pred_index
      @predicate_index
    end

    def get_predicate
      @predicate
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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