Sha256: 079eff44e0e0518b3bd47a39081169bc62daa74c5217027c2112c7d426b4a4a5

Contents?: true

Size: 343 Bytes

Versions: 14

Compression:

Stored size: 343 Bytes

Contents

module Antlr4::Runtime

  class WildcardTransition < Transition
    def initialize(target)
      super(target)
    end

    def serialization_type
      WILDCARD
    end

    def matches(symbol, min_vocab_symbol, max_vocab_symbol)
      symbol >= min_vocab_symbol && symbol <= max_vocab_symbol
    end

    def to_s
      '.'
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
antlr4-runtime-0.2.12 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.2.11 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.2.10 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.2.9 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.2.8 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.2.7 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.2.6 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.2.5 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.2.4 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.2.3 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.2.2 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.2.1 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.2.0 lib/antlr4/runtime/wildcard_transition.rb
antlr4-runtime-0.1.0 lib/antlr4/runtime/wildcard_transition.rb