class Monkey::Lexer::Lexer

Defined in:

monkey/lexer.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(input : String, position : Int32 = 0, read_position : Int32 = 0, ch : Char | Int32 = 0) #

[View source]

Class Method Detail

def self.is_digit?(ch : Char) : Bool #

[View source]
def self.is_letter?(ch : Char) : Bool #

[View source]

Instance Method Detail

def next_token : Token::Token #

[View source]
def peek_char : Char | Int32 #

[View source]
def read_char #

[View source]
def read_identifier : String #

[View source]
def read_number : String #

[View source]
def read_string : String #

[View source]
def skip_whitespace #

[View source]