class

Lexer

Inherits Reference < Object

Constructors

new(source : String)
Source

Instance methods

advance_token

Reset the current token

Source
current_token

The token currently being lexed.

Source
current_token=(current_token : Token)

The token currently being lexed.

Source
pos

The current position in the source String.

Source
pos=(pos : Int32)

The current position in the source String.

Source
read_token

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

Source
source

The source code being lexed.

Source
source=(source : String)

The source code being lexed.

Source