Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builtin ¶
type Builtin struct {
// contains filtered or unexported fields
}
Builtin captures Go functions that are callable from elps.
type Loader ¶
Loader is a generic function to initialize/load an LEnv. A Loader should first define and switch into the package(s) it loads. Typically, after a Loader executes LEnv.InPackage() is executed to switch back into the user package.
A chain of loaders may be formed to load a library.
func LibraryLoader ¶
LibraryLoader loads multiple elps packages implemented in Go.
func PackageLoader ¶
PackageLoader loads an elps package implemented in Go.
type Package ¶
type Package interface {
PackageName() string
}
Package is an elps package implemented in Go.
type PackageBuiltins ¶
type PackageBuiltins interface { Package Builtins() []lisp.LBuiltinDef }
PackageBuiltins retrieves the exposed builtins for an elps package implemented in Go.
type PackageInit ¶
PackageInit allows initialization of an elps package implemented in Go.
type PackageMacros ¶
type PackageMacros interface { Package Macros() []lisp.LBuiltinDef }
PackageMacros returns the macros for an elps package implemented in Go.
type PackageSpecialOps ¶
type PackageSpecialOps interface { Package SpecialOps() []lisp.LBuiltinDef }
PackageSpecialOps returns the special operators for an elps package implemented in Go.