Documentation
¶
Overview ¶
Package compiler contains the core of our compiler.
In brief we go through a three-step process:
We use the lexer to tokenize the expression.
We convert our series of tokens to an internal form.
We walk our internal form, generating output for each block.
There are only one minor complication - storing all the input-floats in the data-area of the program. These require escaping for uniqueness purposes, and to avoid issues with the assembling.
That said this is a toy, and will remain a toy, so I can live with these problems.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
Compiler holds our object-state.
Click to show internal directories.
Click to hide internal directories.