Sha256: 03c757a8a21b3bdbe576d3a9eded940ccea4b31218ddc85c8e1bac1a729d5498

Contents?: true

Size: 695 Bytes

Versions: 11

Compression:

Stored size: 695 Bytes

Contents

module Lrama
  class Lexer
    class Token
      attr_reader s_value: String
      attr_accessor alias_name: String
      attr_reader location: Location
      attr_accessor referred: bool

      def initialize: (s_value: String, ?alias_name: String, ?location: Location) -> void

      def to_s: () -> String
      def referred_by?: (String string) -> bool
      def ==: (Token other) -> bool
      def first_line: () -> Integer
      def first_column: () -> Integer
      def last_line: () -> Integer
      def last_column: () -> Integer
      alias line first_line
      alias column first_column
      def invalid_ref: (Lrama::Grammar::Reference ref, String message) -> bot
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
lrama-0.6.11 sig/lrama/lexer/token.rbs
lrama-0.6.10 sig/lrama/lexer/token.rbs
lrama-0.6.9 sig/lrama/lexer/token.rbs
lrama-0.6.8 sig/lrama/lexer/token.rbs
lrama-0.6.7 sig/lrama/lexer/token.rbs
lrama-0.6.6 sig/lrama/lexer/token.rbs
lrama-0.6.5 sig/lrama/lexer/token.rbs
lrama-0.6.4 sig/lrama/lexer/token.rbs
lrama-0.6.3 sig/lrama/lexer/token.rbs
lrama-0.6.2 sig/lrama/lexer/token.rbs
lrama-0.6.1 sig/lrama/lexer/token.rbs