evaluator

package
v0.1.6-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NONE  = &object.None{Value: "None"}
	TRUE  = &object.Boolean{Value: true}
	FALSE = &object.Boolean{Value: false}

	MAX_CALL_DEPTH              = 1000
	CurrentContext *CallContext = nil
)
View Source
var LineReader *liner.State

Functions

func Eval

func Eval(node ast.Node, env *object.Environment, ctx *CallContext) object.Object

Main evaluation function

func LoadMuninStdlib

func LoadMuninStdlib(env *object.Environment) error

Types

type CallContext added in v0.1.6

type CallContext struct {
	FunctionName string
	Node         ast.Node
	Parent       *CallContext
	// contains filtered or unexported fields
}

CallContext tracks function call state for better error reporting

Jump to

Keyboard shortcuts

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