Documentation ¶
Index ¶
- Constants
- Variables
- func CoerceToBool(v Value) bool
- func IsIterable(v Value) bool
- func IsReadable(v Value) bool
- func NewInvalidUsageError(expected string) error
- func TypeName(v Value) string
- type Array
- type BaseValue
- type Bool
- type Callable
- type CloseFn
- type Closure
- type Compiler
- func (c *Compiler) AddNativeFn(name string, fn vm.NativeFn)
- func (c *Compiler) Compile(filename string, errLogger errlogger.ErrLogger) (*vm.Program, error)
- func (c *Compiler) CompileInline(inline string, errLogger errlogger.ErrLogger) (*vm.Program, error)
- func (c *Compiler) RegisterNativeModuleLoader(name string, regFn func(r NativeModuleContext))
- func (c *Compiler) SetDiag(diag bool)
- type ErrLogger
- type ExternFn
- type FileLoader
- type Float
- type Frame
- type FrameCrumb
- type Func
- type Indexable
- type Int
- type Iterable
- type Iterator
- type Metadata
- type NativeFn
- type NativeModuleContext
- type Object
- type Op
- type Pos
- type Program
- type Readable
- type Reader
- type Regex
- type RuntimeError
- type String
- type VM
- type Value
- type ValueRef
Constants ¶
Variables ¶
View Source
var ( True = vm.True False = vm.False )
View Source
var ErrCannotCallNil = vm.ErrCannotCallNil
Functions ¶
func CoerceToBool ¶
func IsIterable ¶
func IsReadable ¶
func NewInvalidUsageError ¶
Types ¶
type Array ¶
func NewArrayFromSlice ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewCompiler ¶
func NewCompiler(fileLoader FileLoader) *Compiler
func (*Compiler) CompileInline ¶
func (*Compiler) RegisterNativeModuleLoader ¶
func (c *Compiler) RegisterNativeModuleLoader(name string, regFn func(r NativeModuleContext))
type ErrLogger ¶
func NewConsoleErrLogger ¶
func NewConsoleErrLogger() ErrLogger
type FileLoader ¶
func NewNativeFileLoader ¶
func NewNativeFileLoader() FileLoader
type FrameCrumb ¶
type FrameCrumb = vm.FrameCrumb
type NativeModuleContext ¶
type NativeModuleContext = ast.NativeModuleContext
type RuntimeError ¶
type RuntimeError = vm.RuntimeError
Click to show internal directories.
Click to hide internal directories.