ghost

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version represents the current version.
	Version = version.Version

	// NULL represents a null value.
	NULL = value.NULL

	// TRUE represents a true value.
	TRUE = value.TRUE

	// FALSE represents a false value.
	FALSE = value.FALSE
)

Functions

func RegisterFunction

func RegisterFunction(name string, function object.GoFunction)

func RegisterModule added in v0.18.0

func RegisterModule(name string, methods map[string]*object.LibraryFunction, properties map[string]*object.LibraryProperty)

Types

type Ghost added in v0.18.0

type Ghost struct {
	FatalError bool

	Scope *object.Scope
	// contains filtered or unexported fields
}

func New added in v0.18.0

func New() *Ghost

func (*Ghost) Call added in v0.19.0

func (ghost *Ghost) Call(function string, args []object.Object) object.Object

Create a new function called "Call" that will call the passed function with the (optional) passed arguments.

func (*Ghost) Execute added in v0.18.0

func (ghost *Ghost) Execute() object.Object

func (*Ghost) GetDirectory added in v0.18.0

func (ghost *Ghost) GetDirectory() string

func (*Ghost) SetDirectory added in v0.18.0

func (ghost *Ghost) SetDirectory(directory string)

func (*Ghost) SetFile added in v0.18.0

func (ghost *Ghost) SetFile(file string)

func (*Ghost) SetSource added in v0.18.0

func (ghost *Ghost) SetSource(source string)

Jump to

Keyboard shortcuts

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