class

Lrama::Lexer::Token::Base

Inherits Reference < Object

Constructors

new(s_value : String, location : Location, alias_name : String | Nil = nil)
Source

Instance methods

==(other : Base)
Source
alias_name
Source
alias_name=(alias_name : String | Nil)
Source
errors
Source
first_column
Source
first_line
Source
invalid_ref(ref : Grammar::Reference, message : String)
Source
last_column
Source
last_line
Source
line
Source
location
Source
referred=(referred : Bool)
Source
referred?
Source
referred_by?(string : String)
Source
s_value
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
validate
Source