class Lexer

Direct Known Subclasses

Defined in:

lexer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : String) #

[View source]

Instance Method Detail

def advance_token #

Reset the current token


[View source]
def current_token : Token #

The token currently being lexed.


[View source]
def current_token=(current_token : Token) #

The token currently being lexed.


[View source]
def pos : Int32 #

The current position in the source String.


[View source]
def pos=(pos : Int32) #

The current position in the source String.


[View source]
def read_token #

Scan the source until the next token has been completed and return that new token.


[View source]
def source : String #

The source code being lexed.


[View source]
def source=(source : String) #

The source code being lexed.


[View source]