Sha256: a428d4c3d8457988242213817a5cd1e283c73bfe9d0a94cd3a25c2b675137c63

Contents?: true

Size: 552 Bytes

Versions: 14

Compression:

Stored size: 552 Bytes

Contents

module Antlr4::Runtime

  class RuleTransition < Transition
    attr_reader :rule_index # no Rule object at runtime

    attr_reader :precedence

    attr_reader :follow_state

    def initialize(rule_start, rule_index, precedence, follow_state)
      super(rule_start)
      @rule_index = rule_index
      @precedence = precedence
      @follow_state = follow_state
    end

    def serialization_type
      RULE
    end

    def epsilon?
      true
    end

    def matches(_symbol, _min_vocab_symbol, _max_vocab_symbol)
      false
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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