class Ktistec::Lexer

Overview

Breaks an input into tokens.

Defined in:

utils/lexer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(input : String) #

Creates a lexer for the given input.


[View source]

Instance Method Detail

def advance : Token #

Advances the lexer to the next token in the input.

Returns the token.


[View source]
def token : Token #

[View source]
def token? : Token | Nil #

[View source]