class

Lexer::Reader

Inherits Reference < Object

Constructors

new(input : IO, file_name : String | Nil = nil, starting_line = 1)
Source
new(text : String, file_name : String | Nil = nil, starting_line = 1)
Source

Instance methods

current_line

getter idx : UInt32 = 0_u32

Source
current_line=(current_line : String)

getter idx : UInt32 = 0_u32

Source
eof?
Source
has_next?
Source
indent
Source
input

getter text : String

Source
line
Source
location
Source
newline
Source
next
Source
peek
Source
peek2

this function is only used once by the Lexer

Source
peek_str(count) : String

Get sub-string

Source
peek_str?(str_to_match) : Bool

Efficiently check if the substring matches

Source
source
Source