Sha256: 4e97c368bd2747f8941289d2cae754e959aa6252716eb9f049aa5c96fd9f8c16

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

# 已完成

module Antlr4ruby
  class RuleContextWithAltNum < ParserRuleContext
    attr_accessor :alt_num

    def initialize(parent, invoking_state)
      super(parent, invoking_state)
      @alt_num = ATN.INVALID_ALT_NUMBER
    end

    def get_alt_number
      @alt_num
    end

    def set_alt_number(alt_number)
      @alt_num = alt_number
    end


  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
antlr4ruby-0.1.0 lib/antlr4ruby/rule_context_with_alt_num.rb