stdlib

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package stdlib provides the standard library for the English language runtime. It is shared by both the AST VM and the instruction VM.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eval

func Eval(name string, args []vm.Value) (vm.Value, error)

Eval evaluates a built-in function by name with the provided arguments.

func PredefinedNames

func PredefinedNames() []string

PredefinedNames returns the names of all constants registered by the stdlib. Pass these to vm.Check so the compile-time checker can catch redeclarations.

func PredefinedValues

func PredefinedValues() map[string]interface{}

PredefinedValues returns all constants registered by the stdlib as a map. Used by ivm.Machine to initialize predefined constants.

func Register

func Register(env *vm.Environment)

Register registers all standard library functions into env.

Types

This section is empty.

Jump to

Keyboard shortcuts

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