interpreter

package
v0.0.0-...-c2bc880 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interpreter

type Interpreter struct {
	sync.Mutex

	PlugManager *plugin.Manager
	DepManager  *dependency.Manager
	// contains filtered or unexported fields
}

func NewInterpreter

func NewInterpreter(plugManager *plugin.Manager, depManager *dependency.Manager, s spec.Spec, build ast.StmtBuild) *Interpreter

func (*Interpreter) Expr

func (in *Interpreter) Expr(ctx context.Context, ex ast.Expr) (spec.Value, []string, error)

func (*Interpreter) Interpret

func (in *Interpreter) Interpret(ctx context.Context, stmt Stmt) error

func (*Interpreter) Next

func (in *Interpreter) Next() []Stmt

type Stmt

type Stmt struct {
	Spec spec.Spec
	Stmt ast.Stmt
}

Jump to

Keyboard shortcuts

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