Documentation ¶
Overview ¶
Generates go code
Index ¶
Constants ¶
View Source
const ERROR_THRESHOLD = 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectedVar ¶
type CollectedVar struct {
// contains filtered or unexported fields
}
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewCompiler ¶
func (*Compiler) Compile ¶
func (c *Compiler) Compile() (map[string]typechecker.FullModuleEnv, []data.CompilerProblem)
func (*Compiler) Errors ¶
func (c *Compiler) Errors() []data.CompilerProblem
func (*Compiler) Modules ¶
func (c *Compiler) Modules() map[string]typechecker.FullModuleEnv
type Desugar ¶
type Desugar struct {
// contains filtered or unexported fields
}
func NewDesugar ¶
func NewDesugar(smod ast.SModule, tc *tc.Typechecker) *Desugar
func (*Desugar) Errors ¶
func (d *Desugar) Errors() []data.CompilerProblem
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
The environment where a full compilation process takes place.
func NewEnviroment ¶
func NewEnviroment(opts Options) *Environment
func (*Environment) GenerateCode ¶
func (env *Environment) GenerateCode(output string, dryRun bool)
Optimize the AST and generate go code
func (*Environment) ParseSources ¶
func (env *Environment) ParseSources(srcs []Source) (map[string]tc.FullModuleEnv, []data.CompilerProblem)
type Optimizer ¶
type Optimizer struct {
// contains filtered or unexported fields
}
Generates go ast
func NewOptimizer ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file contains the initial parsed AST before desugaring and type checking
|
This file contains the initial parsed AST before desugaring and type checking |
Click to show internal directories.
Click to hide internal directories.