Sha256: 126e5434cb9424ce94aa58dd871405f34d51a584acef1553351d9373e4e0ab83

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 KB

Contents

module Lrama
  class Grammar
    class Symbol
      attr_accessor id: Lexer::Token
      attr_accessor alias_name: String?
      attr_accessor number: Integer
      attr_accessor tag: Lexer::Token?
      attr_accessor term: bool
      attr_accessor token_id: Integer
      attr_accessor nullable: bool
      attr_accessor precedence: Precedence?
      attr_accessor printer: Printer?
      attr_accessor destructor: Destructor?
      attr_accessor error_token: ErrorToken

      attr_accessor first_set: Set[Array[Symbol]]
      attr_accessor first_set_bitmap: Integer
      attr_writer eof_symbol: Symbol
      attr_writer error_symbol: Symbol
      attr_writer undef_symbol: Symbol
      attr_writer accept_symbol: Symbol

      def initialize: (
          id: Lexer::Token, term: bool, ?alias_name: String?, ?number: Integer?, ?tag: Lexer::Token?,
          ?token_id: Integer?, ?nullable: bool?, ?precedence: Precedence?, ?printer: Printer?) -> void

      def term?: () -> bool
      def nterm?: () -> bool
      def eof_symbol?: () -> bool
      def error_symbol?: () -> bool
      def undef_symbol?: () -> bool
      def accept_symbol?: () -> bool
      def display_name: () -> String
      def enum_name: () -> String
      def comment: () -> String?
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lrama-0.6.9 sig/lrama/grammar/symbol.rbs
lrama-0.6.8 sig/lrama/grammar/symbol.rbs
lrama-0.6.7 sig/lrama/grammar/symbol.rbs
lrama-0.6.6 sig/lrama/grammar/symbol.rbs
lrama-0.6.5 sig/lrama/grammar/symbol.rbs
lrama-0.6.4 sig/lrama/grammar/symbol.rbs