Sha256: ba1cdf346da34ad61ecfffda2c619c743bf7eb229a89405da18053915bc1182b

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

module Antlr4ruby

  # @abstract
  class ATNState
    BASIC: Integer
    BLOCK_END: Integer
    BLOCK_START: Integer
    INITIAL_NUM_TRANSITIONS: Integer

    INVALID_STATE_NUMBER: Integer
    INVALID_TYPE: Integer

    LOOP_END: Integer
    PLUS_BLOCK_START: Integer
    PLUS_LOOP_BACK: Integer
    RULE_START: Integer

    RULE_STOP: Integer
    STAR_BLOCK_START: Integer

    STAR_LOOP_BACK: Integer
    STAR_LOOP_ENTRY: Integer
    TOKEN_START: Integer

    @@serialization_names: Array[String]

    attr_accessor atn: ATN?
    attr_accessor epsilon_only_transitions: bool
    attr_accessor next_token_within_rule: RangeSet[Integer]
    attr_accessor rule_index: Integer
    attr_accessor state_number: Integer
    attr_reader transitions: Array[Transition]

    def add_transition: (Transition, Integer) -> void

    def get_number_of_transitions: -> Integer

    def get_state_type: -> Integer

    def get_transition: (Integer) -> Transition?

    def only_has_epsilon_transitions?: -> bool

    def remove_transition: (Integer) -> Transition

    def set_rule_index: (Integer) -> void

    def set_transition: (Integer, Transition) -> void
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
antlr4ruby-0.1.0 sig/antlr4ruby/atn/state/atn_state.rbs