Documentation
¶
Overview ¶
Package catalog is the single semantic index for the public Sonolus Go DSL.
Code generated by gencatalog; DO NOT EDIT.
Index ¶
- Variables
- func AllowsMode(symbol *Symbol, mode string) bool
- func AllowsPhase(symbol *Symbol, phase string) bool
- func MemoryReadonly(currentMode mode.Mode, callback, storage string) bool
- type Effect
- type Kind
- type Recipe
- type RecipeKind
- type RuntimeSignature
- type RuntimeSimulation
- type SimulationClass
- type Symbol
Constants ¶
This section is empty.
Variables ¶
View Source
var RuntimeFunctions = []resource.RuntimeFunction{}/* 191 elements not displayed */
View Source
var RuntimeSignatures = map[resource.RuntimeFunction]RuntimeSignature{}/* 176 elements not displayed */
View Source
var RuntimeSimulations = map[resource.RuntimeFunction]RuntimeSimulation{}/* 191 elements not displayed */
View Source
var Symbols = []Symbol{}/* 1158 elements not displayed */
Functions ¶
func AllowsMode ¶
func AllowsPhase ¶
Types ¶
type Recipe ¶
type Recipe struct {
Kind RecipeKind
Runtime resource.RuntimeFunction
Prefix []float64
Operation string
Reason string
Storage string
Offset int
Stride int
IndexArg int
Write bool
}
func LookupRecipe ¶
LookupRecipe is the sole classification point for public DSL symbols. A forbidden recipe is deliberate and differs from a missing catalog symbol.
type RecipeKind ¶
type RecipeKind string
const ( RecipeRuntime RecipeKind = "runtime" RecipeAggregate RecipeKind = "aggregate" RecipeMemory RecipeKind = "memory" RecipeResource RecipeKind = "resource" RecipeContainer RecipeKind = "container" RecipeCompileTime RecipeKind = "compile-time" RecipeForbidden RecipeKind = "forbidden" )
type RuntimeSignature ¶
func LookupRuntimeSignature ¶
func LookupRuntimeSignature(runtime resource.RuntimeFunction) (RuntimeSignature, bool)
type RuntimeSimulation ¶
type RuntimeSimulation struct {
Class SimulationClass
Signature RuntimeSignature
Effect Effect
Strategy string
SpecialShape bool
Shape string
Arguments string
}
func LookupRuntimeSimulation ¶
func LookupRuntimeSimulation(runtime resource.RuntimeFunction) (RuntimeSimulation, bool)
type SimulationClass ¶
type SimulationClass string
const ( SimulationControl SimulationClass = "control" SimulationPure SimulationClass = "pure" SimulationMemory SimulationClass = "memory" SimulationRandom SimulationClass = "random" SimulationEffect SimulationClass = "effect" SimulationHandler SimulationClass = "handler" )
Click to show internal directories.
Click to hide internal directories.