class CLTK::Lexer::Exceptions::LexingError
- CLTK::Lexer::Exceptions::LexingError
- Exception
- Reference
- Object
Overview
A LexingError exception is raised when an input stream contains a substring that isn't matched by any of a lexer's rules.
Defined in:
cltk/lexer/exceptions.crClass Method Summary
-
.new(stream_offset : Int32, line_number : Int32, line_offset : Int32, remainder : String)
@param [Integer] stream_offset Offset from begnning of string.
Instance Method Summary
-
#line_number : Int32
@return [Integer]
-
#line_offset : Int32
@return [Integer]
-
#remainder : String
@return [String]
-
#stream_offset : Int32
@return [Integer]
Instance methods inherited from class Object
in?(collection : Array | Set)
in?
Class Method Detail
def self.new(stream_offset : Int32, line_number : Int32, line_offset : Int32, remainder : String)
#
@param [Integer] stream_offset Offset from begnning of string. @param [Integer] line_number Number of newlines encountered so far. @param [Integer] line_offset Offset from beginning of line. @param [String] remainder Rest of the string that couldn't be lexed.