class

Lrama::Lexer::Location

Inherits Reference < Object

Constructors

new(grammar_file : GrammarFile, first_line : Int32, first_column : Int32, last_line : Int32, last_column : Int32)
Source

Instance methods

==(other : Location)
Source
error_with_carets
Source
first_column
Source
first_line
Source
generate_error_message(error_message : String)
Source
grammar_file
Source
last_column
Source
last_line
Source
partial_location(left : Int32, right : Int32)
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