Sha256: 1395c75e400fea5e823bb278e267ff7efa56f0c3bc09562dba980e45a778fc51

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

module Antlr4ruby
  # @final
  class PrecedencePredicateTransition < AbstractPredicateTransition
    attr_reader :precedence
    def initialize(target, precedence)
      super(target)
      @precedence = precedence
    end

    def get_predicate
      # todo
    end

    def is_epsilon?
      true
    end

    def get_serialization_type
      PRECEDENCE
    end

    def matches?(symbol, min_vocab_symbol, max_vocab_symbol)
      false
    end

    def to_s
      "#{precedence} >= _p"
    end




  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
antlr4ruby-0.1.0 lib/antlr4ruby/atn/transition/precedence_predicate_transition.rb