package interpret
import "github.com/purpleidea/mgmt/lang/interpret"
Package interpret contains the implementation of the actual interpret function that takes an AST and returns a resource graph.
Index ¶
Functions ¶
func Interpret ¶
func Interpret(ast interfaces.Stmt, table map[interfaces.Func]types.Value) (*pgraph.Graph, error)
Interpret runs the program and outputs a generated resource graph. It requires an AST, and the table of values required to populate that AST. Type unification, and earlier steps should obviously be run first so that you can actually get a useful resource graph out of this instead of an error!
Source Files ¶
- Version
- v0.0.0-20250322185616-c50a578426f1 (latest)
- Published
- Mar 22, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 4 days ago –
Tools for package owners.