Documentation ¶
Overview ¶
Package lexer implements a lexical analyzer used by the Elk interpreter.
Lexer expects a slice of bytes containing Elk source code analyses it and returns a stream of tokens/tokens.
Tokens are returned on demand.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
Holds the current state of the lexing process.
func NewWithName ¶
Same as New but lets you specify the path to the source code file.
Click to show internal directories.
Click to hide internal directories.