Sha256: 94a1c702d4c2199f1b66be71124bf15dff2a8f9b3ba5c1ef6d5a319d72bcc0f3

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 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::Tag?
      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]] | Set[Symbol]
      attr_accessor first_set_bitmap: Integer
      attr_writer eof_symbol: bool
      attr_writer error_symbol: bool
      attr_writer undef_symbol: bool
      attr_writer accept_symbol: bool

      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

1 entries across 1 versions & 1 rubygems

Version Path
lrama-0.6.10 sig/lrama/grammar/symbol.rbs