compiler

package
v0.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

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 compiles AST to executable workflow

func New

func New(llm chatter.Chatter, sink iosystem.Sink, cache storage.Storage) (*Compiler, error)

New creates a new compiler

func (*Compiler) Compile

func (c *Compiler) Compile(ctx context.Context, tree *ast.AST) (*Workflow, error)

Compile validates AST and compiles to executable workflow

type Workflow

type Workflow struct {
	Name       string
	About      string
	Entrypoint string // Optional: default job name, or "main" if empty
	Schema     ast.SchemaNode
	Jobs       map[string]*runtime.Job
}

Workflow represents a compiled, executable workflow

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL