Documentation ¶ Index ¶ func ValidateCalls(exprs []core.Expr, registry *stdlib.Registry) error type Compiler func NewCompiler(source string) (*Compiler, error) func (c *Compiler) Compile() ([]core.Expr, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ValidateCalls ¶ func ValidateCalls(exprs []core.Expr, registry *stdlib.Registry) error ValidateCalls walks the AST and checks that every function call refers to a function that exists in the registry. This is a lightweight static check - argument types are validated at runtime Types ¶ type Compiler ¶ type Compiler struct { // contains filtered or unexported fields } Compiler builds an AST from a slice of tokens. func NewCompiler ¶ func NewCompiler(source string) (*Compiler, error) func (*Compiler) Compile ¶ func (c *Compiler) Compile() ([]core.Expr, error) Source Files ¶ View all Source files compiler.govalidate.go Click to show internal directories. Click to hide internal directories.