Documentation
¶
Index ¶
Constants ¶
View Source
const ( ModePlay = mode.ModePlay ModeWatch = mode.ModeWatch ModePreview = mode.ModePreview ModeTutorial = mode.ModeTutorial )
View Source
const ( OptimizationMinimal = optimize.LevelMinimal OptimizationFast = optimize.LevelFast OptimizationStandard = optimize.LevelStandard )
View Source
const ( RuntimeChecksNone = frontend.RuntimeChecksNone RuntimeChecksTerminate = frontend.RuntimeChecksTerminate RuntimeChecksNotify = frontend.RuntimeChecksNotify )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchetypeSchema ¶
type ArchetypeSchema = compilerschema.Archetype
type CompileStats ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewCompiler ¶
func (*Compiler) CompileAll ¶
func (*Compiler) Schema ¶
func (c *Compiler) Schema() (*ProjectSchema, error)
Schema returns the Play, Watch, and Preview level archetype schema without lowering callbacks or running optimization and backend compilation.
func (*Compiler) SourceFiles ¶
func (*Compiler) Stats ¶
func (c *Compiler) Stats() CompileStats
type OptimizationLevel ¶
OptimizationLevel selects the compiler optimization pipeline.
type Options ¶
type Options struct {
Optimization optimize.Level
FallbackROM []byte
RuntimeChecks RuntimeChecks
}
type ProjectSchema ¶
type ProjectSchema = compilerschema.Project
type RuntimeChecks ¶
type RuntimeChecks = frontend.RuntimeChecks
Directories
¶
| Path | Synopsis |
|---|---|
|
Package backend lowers source-independent frontend IR into Sonolus engine data.
|
Package backend lowers source-independent frontend IR into Sonolus engine data. |
|
Package catalog is the single semantic index for the public Sonolus Go DSL.
|
Package catalog is the single semantic index for the public Sonolus Go DSL. |
|
cmd/gencatalog
command
|
|
|
Package intrinsic defines the limited standard-library surface understood by the compiler.
|
Package intrinsic defines the limited standard-library surface understood by the compiler. |
|
Package ir defines the source-independent, typed control-flow IR emitted by the compiler frontend.
|
Package ir defines the source-independent, typed control-flow IR emitted by the compiler frontend. |
|
Package optimize provides source-independent optimization passes for the strongly typed compiler IR.
|
Package optimize provides source-independent optimization passes for the strongly typed compiler IR. |
|
Package schema builds the level archetype field contract shared by the CLI schema output and development-level validation.
|
Package schema builds the level archetype field contract shared by the CLI schema output and development-level validation. |
|
Package sim compiles and executes final Sonolus EngineData callbacks.
|
Package sim compiles and executes final Sonolus EngineData callbacks. |
|
Package tag parses namespaced Go struct tags used by the compiler.
|
Package tag parses namespaced Go struct tags used by the compiler. |
Click to show internal directories.
Click to hide internal directories.