class Bench::Lexer

Defined in:

bench/lexer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(input : String) #

[View source]

Instance Method Detail

def is_eof(char : Char) #

[View source]
def is_identifier(char : Char) #

[View source]
def is_keyword(str : String) #

[View source]
def is_number(char : Char) #

[View source]
def is_operator(char : Char) #

[View source]
def is_punc(char : Char) #

[View source]
def is_whitespace(char : Char) #

[View source]
def lex #

[View source]
def lookahead #

[View source]
def next_token #

[View source]
def peek #

[View source]
def read_identifier #

[View source]
def read_number #

[View source]
def read_operator #

[View source]
def read_string #

[View source]
def tokens : Array(Bench::Token) #

[View source]