Documentation
¶
Index ¶
- Constants
- Variables
- func About() string
- func FormatValue(format string, a ...Value) (string, error)
- func Name() string
- func PrintAST(path string) error
- func PrintBytecode(script *Script, name string) string
- func PrintCoreLibInformation()
- func PrintMachineCode(path string) error
- func PrintTokens(path string) error
- func Version() string
- type Array
- func (xs *Array) Binop(op uint64, rhs Value) (Value, error)
- func (xs *Array) Boolean() Bool
- func (xs *Array) Clone() Value
- func (xs *Array) Equals(other Value) Bool
- func (xs *Array) IGet(index Value) (Value, error)
- func (xs *Array) ISet(index, val Value) error
- func (xs *Array) IsCallable() Bool
- func (xs *Array) IsIterable() Bool
- func (xs *Array) Iterator() Value
- func (xs *Array) MarshalJSON() ([]byte, error)
- func (xs *Array) ObjectKey() string
- func (xs *Array) Prefix(op uint64) (Value, error)
- func (xs Array) String() string
- func (xs *Array) Type() string
- type ArrayIterator
- func (it *ArrayIterator) Binop(uint64, Value) (Value, error)
- func (it *ArrayIterator) Boolean() Bool
- func (it *ArrayIterator) Clone() Value
- func (it *ArrayIterator) Equals(Value) Bool
- func (it *ArrayIterator) IGet(Value) (Value, error)
- func (it *ArrayIterator) ISet(Value, Value) error
- func (it *ArrayIterator) IsCallable() Bool
- func (it *ArrayIterator) IsIterable() Bool
- func (it *ArrayIterator) Iterator() Value
- func (it *ArrayIterator) Key() Value
- func (it *ArrayIterator) Next() bool
- func (it *ArrayIterator) Prefix(uint64) (Value, error)
- func (it ArrayIterator) String() string
- func (it *ArrayIterator) Type() string
- func (it *ArrayIterator) Value() Value
- type Bool
- func (b Bool) Binop(op uint64, rhs Value) (Value, error)
- func (b Bool) Boolean() Bool
- func (b Bool) Call(args ...Value) (Value, error)
- func (b Bool) Clone() Value
- func (b Bool) Equals(other Value) Bool
- func (b Bool) IGet(index Value) (Value, error)
- func (b Bool) ISet(index, val Value) error
- func (b Bool) IsCallable() Bool
- func (b Bool) IsIterable() Bool
- func (b Bool) Iterator() Value
- func (b Bool) ObjectKey() string
- func (b Bool) Prefix(op uint64) (Value, error)
- func (b Bool) String() string
- func (b Bool) Type() string
- type Bytes
- func (b *Bytes) Binop(op uint64, rhs Value) (Value, error)
- func (b *Bytes) Boolean() Bool
- func (b *Bytes) Clone() Value
- func (b *Bytes) Equals(other Value) Bool
- func (b *Bytes) IGet(index Value) (Value, error)
- func (b *Bytes) ISet(index, val Value) error
- func (b *Bytes) IsCallable() Bool
- func (b *Bytes) IsIterable() Bool
- func (b *Bytes) Iterator() Value
- func (b *Bytes) ObjectKey() string
- func (b *Bytes) Prefix(op uint64) (Value, error)
- func (b Bytes) String() string
- func (b *Bytes) Type() string
- type BytesIterator
- func (bi *BytesIterator) Binop(uint64, Value) (Value, error)
- func (bi *BytesIterator) Boolean() Bool
- func (bi *BytesIterator) Clone() Value
- func (bi *BytesIterator) Equals(Value) Bool
- func (bi *BytesIterator) IGet(Value) (Value, error)
- func (bi *BytesIterator) ISet(Value, Value) error
- func (bi *BytesIterator) IsCallable() Bool
- func (bi *BytesIterator) IsIterable() Bool
- func (bi *BytesIterator) Iterator() Value
- func (bi *BytesIterator) Key() Value
- func (bi *BytesIterator) Next() bool
- func (bi *BytesIterator) Prefix(uint64) (Value, error)
- func (bi BytesIterator) String() string
- func (bi *BytesIterator) Type() string
- func (bi *BytesIterator) Value() Value
- type CoreFunction
- func (c *CoreFunction) Binop(uint64, Value) (Value, error)
- func (c *CoreFunction) Boolean() Bool
- func (f *CoreFunction) Clone() Value
- func (c *CoreFunction) Equals(other Value) Bool
- func (c *CoreFunction) IGet(Value) (Value, error)
- func (c *CoreFunction) ISet(Value, Value) error
- func (c *CoreFunction) IsCallable() Bool
- func (c *CoreFunction) IsIterable() Bool
- func (c *CoreFunction) Iterator() Value
- func (c *CoreFunction) Prefix(uint64) (Value, error)
- func (f CoreFunction) String() string
- func (c *CoreFunction) Type() string
- type Enum
- func (e *Enum) Binop(op uint64, rhs Value) (Value, error)
- func (e *Enum) Boolean() Bool
- func (e *Enum) Call(args ...Value) (Value, error)
- func (e *Enum) Clone() Value
- func (e *Enum) Equals(other Value) Bool
- func (e *Enum) IGet(index Value) (Value, error)
- func (e *Enum) ISet(Value, Value) error
- func (e *Enum) IsCallable() Bool
- func (e *Enum) IsIterable() Bool
- func (e *Enum) Iterator() Value
- func (e *Enum) MarshalJSON() ([]byte, error)
- func (e *Enum) ObjectKey() string
- func (e *Enum) Prefix(op uint64) (Value, error)
- func (e Enum) String() string
- func (e *Enum) Type() string
- type Error
- func (e Error) Binop(op uint64, rhs Value) (Value, error)
- func (e Error) Boolean() Bool
- func (e Error) Clone() Value
- func (e Error) Equals(other Value) Bool
- func (e Error) IGet(index Value) (Value, error)
- func (e Error) ISet(index, val Value) error
- func (e Error) IsCallable() Bool
- func (e Error) IsIterable() Bool
- func (e Error) Iterator() Value
- func (e Error) ObjectKey() string
- func (e Error) Prefix(op uint64) (Value, error)
- func (e Error) String() string
- func (e Error) Type() string
- type ErrorInfo
- type FileHandler
- func (file *FileHandler) Binop(op uint64, rhs Value) (Value, error)
- func (file *FileHandler) Boolean() Bool
- func (file *FileHandler) Clone() Value
- func (file *FileHandler) Equals(other Value) Bool
- func (file *FileHandler) IGet(Value) (Value, error)
- func (file *FileHandler) ISet(Value, Value) error
- func (file *FileHandler) IsCallable() Bool
- func (file *FileHandler) IsIterable() Bool
- func (file *FileHandler) Iterator() Value
- func (file *FileHandler) Prefix(op uint64) (Value, error)
- func (file *FileHandler) String() string
- func (file *FileHandler) Type() string
- type Float
- func (f Float) Binop(op uint64, rhs Value) (Value, error)
- func (f Float) Boolean() Bool
- func (f Float) Call(args ...Value) (Value, error)
- func (f Float) Clone() Value
- func (f Float) Equals(other Value) Bool
- func (f Float) IGet(index Value) (Value, error)
- func (f Float) ISet(index, val Value) error
- func (f Float) IsCallable() Bool
- func (f Float) IsIterable() Bool
- func (f Float) Iterator() Value
- func (f Float) ObjectKey() string
- func (f Float) Prefix(op uint64) (Value, error)
- func (f Float) String() string
- func (f Float) Type() string
- type Function
- func (f *Function) Binop(op uint64, r Value) (Value, error)
- func (f *Function) Boolean() Bool
- func (f *Function) Clone() Value
- func (f *Function) Equals(other Value) Bool
- func (f *Function) IGet(Value) (Value, error)
- func (f *Function) ISet(Value, Value) error
- func (f *Function) IsCallable() Bool
- func (f *Function) IsIterable() Bool
- func (f *Function) Iterator() Value
- func (f *Function) ObjectKey() string
- func (f *Function) Prefix(op uint64) (Value, error)
- func (f Function) String() string
- func (f *Function) Type() string
- type GFn
- func (gfn GFn) Binop(op uint64, r Value) (Value, error)
- func (gfn GFn) Boolean() Bool
- func (gfn GFn) Call(args ...Value) (Value, error)
- func (gFn GFn) Clone() Value
- func (gfn GFn) Equals(other Value) Bool
- func (gfn GFn) IGet(index Value) (Value, error)
- func (gfn GFn) ISet(index, val Value) error
- func (gfn GFn) IsCallable() Bool
- func (gfn GFn) IsIterable() Bool
- func (gfn GFn) Iterator() Value
- func (gfn GFn) MarshalJSON() ([]byte, error)
- func (gfn GFn) ObjectKey() string
- func (gfn GFn) Prefix(op uint64) (Value, error)
- func (gfn GFn) String() string
- func (gfn GFn) Type() string
- type GlobalState
- type Integer
- func (l Integer) Binop(op uint64, rhs Value) (Value, error)
- func (i Integer) Boolean() Bool
- func (i Integer) Call(args ...Value) (Value, error)
- func (i Integer) Clone() Value
- func (i Integer) Equals(other Value) Bool
- func (i Integer) IGet(index Value) (Value, error)
- func (i Integer) ISet(index, val Value) error
- func (i Integer) IsCallable() Bool
- func (i Integer) IsIterable() Bool
- func (i Integer) Iterator() Value
- func (i Integer) ObjectKey() string
- func (i Integer) Prefix(op uint64) (Value, error)
- func (i Integer) String() string
- func (i Integer) Type() string
- type IntegerIterator
- func (it *IntegerIterator) Binop(uint64, Value) (Value, error)
- func (it *IntegerIterator) Boolean() Bool
- func (it *IntegerIterator) Clone() Value
- func (it *IntegerIterator) Equals(Value) Bool
- func (it *IntegerIterator) IGet(Value) (Value, error)
- func (it *IntegerIterator) ISet(Value, Value) error
- func (it *IntegerIterator) IsCallable() Bool
- func (it *IntegerIterator) IsIterable() Bool
- func (it *IntegerIterator) Iterator() Value
- func (it *IntegerIterator) Key() Value
- func (it *IntegerIterator) Next() bool
- func (it *IntegerIterator) Prefix(uint64) (Value, error)
- func (it IntegerIterator) String() string
- func (it *IntegerIterator) Type() string
- func (it *IntegerIterator) Value() Value
- type Interpreter
- type Iterator
- type LibsLoader
- type Nil
- func (n Nil) Binop(op uint64, rhs Value) (Value, error)
- func (n Nil) Boolean() Bool
- func (n Nil) Clone() Value
- func (n Nil) Equals(other Value) Bool
- func (n Nil) IGet(index Value) (Value, error)
- func (n Nil) ISet(index, val Value) error
- func (n Nil) IsCallable() Bool
- func (n Nil) IsIterable() Bool
- func (n Nil) Iterator() Value
- func (n Nil) ObjectKey() string
- func (n Nil) Prefix(op uint64) (Value, error)
- func (n Nil) String() string
- func (n Nil) Type() string
- type Object
- func (o *Object) Binop(op uint64, rhs Value) (Value, error)
- func (o *Object) Boolean() Bool
- func (o *Object) Call(args ...Value) (Value, error)
- func (o *Object) Clone() Value
- func (o *Object) Equals(other Value) Bool
- func (o *Object) IGet(index Value) (Value, error)
- func (o *Object) ISet(index, val Value) error
- func (o *Object) IsCallable() Bool
- func (o *Object) IsIterable() Bool
- func (o *Object) Iterator() Value
- func (o *Object) MarshalJSON() ([]byte, error)
- func (o *Object) ObjectKey() string
- func (o *Object) Prefix(op uint64) (Value, error)
- func (o *Object) String() string
- func (o *Object) Type() string
- type ObjectIterator
- func (it *ObjectIterator) Binop(uint64, Value) (Value, error)
- func (it *ObjectIterator) Boolean() Bool
- func (it *ObjectIterator) Clone() Value
- func (it *ObjectIterator) Equals(Value) Bool
- func (it *ObjectIterator) IGet(Value) (Value, error)
- func (it *ObjectIterator) ISet(Value, Value) error
- func (it *ObjectIterator) IsCallable() Bool
- func (it *ObjectIterator) IsIterable() Bool
- func (it *ObjectIterator) Iterator() Value
- func (it *ObjectIterator) Key() Value
- func (it *ObjectIterator) Next() bool
- func (it *ObjectIterator) Prefix(uint64) (Value, error)
- func (it ObjectIterator) String() string
- func (it *ObjectIterator) Type() string
- func (it *ObjectIterator) Value() Value
- type ReferenceSemanticsImpl
- func (i *ReferenceSemanticsImpl) Binop(uint64, Value) (Value, error)
- func (i *ReferenceSemanticsImpl) Boolean() Bool
- func (i *ReferenceSemanticsImpl) Call(args ...Value) (Value, error)
- func (i *ReferenceSemanticsImpl) Clone() Value
- func (i *ReferenceSemanticsImpl) Equals(Value) Bool
- func (i *ReferenceSemanticsImpl) IGet(Value) (Value, error)
- func (i *ReferenceSemanticsImpl) ISet(Value, Value) error
- func (i *ReferenceSemanticsImpl) IsCallable() Bool
- func (i *ReferenceSemanticsImpl) IsIterable() Bool
- func (i *ReferenceSemanticsImpl) Iterator() Value
- func (i *ReferenceSemanticsImpl) MarshalJSON() ([]byte, error)
- func (i *ReferenceSemanticsImpl) ObjectKey() string
- func (i *ReferenceSemanticsImpl) Prefix(uint64) (Value, error)
- func (i ReferenceSemanticsImpl) String() string
- func (i *ReferenceSemanticsImpl) Type() string
- type Result
- type Script
- type String
- func (s *String) Binop(op uint64, rhs Value) (Value, error)
- func (s *String) Boolean() Bool
- func (s *String) Clone() Value
- func (s *String) Equals(other Value) Bool
- func (s *String) IGet(index Value) (Value, error)
- func (s *String) ISet(index, val Value) error
- func (s *String) IsCallable() Bool
- func (s *String) IsIterable() Bool
- func (s *String) Iterator() Value
- func (s *String) MarshalJSON() ([]byte, error)
- func (s *String) ObjectKey() string
- func (s *String) Prefix(op uint64) (Value, error)
- func (s String) String() string
- func (s *String) Type() string
- type StringIterator
- func (it *StringIterator) Binop(uint64, Value) (Value, error)
- func (it *StringIterator) Boolean() Bool
- func (it *StringIterator) Clone() Value
- func (it *StringIterator) Equals(Value) Bool
- func (it *StringIterator) IGet(Value) (Value, error)
- func (it *StringIterator) ISet(Value, Value) error
- func (it *StringIterator) IsCallable() Bool
- func (it *StringIterator) IsIterable() Bool
- func (it *StringIterator) Iterator() Value
- func (it *StringIterator) Key() Value
- func (it *StringIterator) Next() bool
- func (it *StringIterator) Prefix(uint64) (Value, error)
- func (it StringIterator) String() string
- func (it *StringIterator) Type() string
- func (it *StringIterator) Value() Value
- type Thread
- func (th *Thread) Binop(op uint64, rhs Value) (Value, error)
- func (th *Thread) Boolean() Bool
- func (th *Thread) Clone() Value
- func (th *Thread) Equals(other Value) Bool
- func (th *Thread) ObjectKey() string
- func (th *Thread) Prefix(op uint64) (Value, error)
- func (th *Thread) String() string
- func (th *Thread) Type() string
- type ThreadState
- type Time
- func (t Time) Binop(op uint64, rhs Value) (Value, error)
- func (t Time) Boolean() Bool
- func (t Time) Call(args ...Value) (Value, error)
- func (t Time) Clone() Value
- func (t Time) Equals(other Value) Bool
- func (t Time) IGet(index Value) (Value, error)
- func (t Time) ISet(index, val Value) error
- func (t Time) IsCallable() Bool
- func (t Time) IsIterable() Bool
- func (t Time) Iterator() Value
- func (t Time) ObjectKey() string
- func (t Time) Prefix(op uint64) (Value, error)
- func (t Time) String() string
- func (t Time) Type() string
- type VM
- type Value
- type ValueSemanticsImpl
- func (i ValueSemanticsImpl) Binop(uint64, Value) (Value, error)
- func (i ValueSemanticsImpl) Boolean() Bool
- func (i ValueSemanticsImpl) Call(args ...Value) (Value, error)
- func (i ValueSemanticsImpl) Clone() Value
- func (i ValueSemanticsImpl) Equals(Value) Bool
- func (i ValueSemanticsImpl) IGet(Value) (Value, error)
- func (i ValueSemanticsImpl) ISet(Value, Value) error
- func (i ValueSemanticsImpl) IsCallable() Bool
- func (i ValueSemanticsImpl) IsIterable() Bool
- func (i ValueSemanticsImpl) Iterator() Value
- func (i ValueSemanticsImpl) MarshalJSON() ([]byte, error)
- func (i ValueSemanticsImpl) ObjectKey() string
- func (i ValueSemanticsImpl) Prefix(uint64) (Value, error)
- func (i ValueSemanticsImpl) String() string
- func (i ValueSemanticsImpl) Type() string
Constants ¶
View Source
const (
DefaultInputPrompt = "Input > "
)
View Source
const VidaFileExtension = ".vida"
Variables ¶
View Source
var NilValue = Nil{}
Functions ¶
func FormatValue ¶
Format is like fmt.Sprintf but using Values.
func PrintBytecode ¶
func PrintCoreLibInformation ¶
func PrintCoreLibInformation()
func PrintMachineCode ¶
func PrintTokens ¶
Types ¶
type Array ¶
type Array struct {
ReferenceSemanticsImpl
Value []Value
}
func (*Array) IsCallable ¶
func (*Array) IsIterable ¶
func (*Array) MarshalJSON ¶
type ArrayIterator ¶
type ArrayIterator struct {
ReferenceSemanticsImpl
Array []Value
Init int
End int
}
func (*ArrayIterator) Boolean ¶
func (it *ArrayIterator) Boolean() Bool
func (*ArrayIterator) Clone ¶
func (it *ArrayIterator) Clone() Value
func (*ArrayIterator) Equals ¶
func (it *ArrayIterator) Equals(Value) Bool
func (*ArrayIterator) IsCallable ¶
func (it *ArrayIterator) IsCallable() Bool
func (*ArrayIterator) IsIterable ¶
func (it *ArrayIterator) IsIterable() Bool
func (*ArrayIterator) Iterator ¶
func (it *ArrayIterator) Iterator() Value
func (*ArrayIterator) Key ¶
func (it *ArrayIterator) Key() Value
func (*ArrayIterator) Next ¶
func (it *ArrayIterator) Next() bool
func (ArrayIterator) String ¶
func (it ArrayIterator) String() string
func (*ArrayIterator) Type ¶
func (it *ArrayIterator) Type() string
func (*ArrayIterator) Value ¶
func (it *ArrayIterator) Value() Value
type Bytes ¶
type Bytes struct {
ReferenceSemanticsImpl
Value []byte
}
func (*Bytes) IsCallable ¶
func (*Bytes) IsIterable ¶
type BytesIterator ¶
type BytesIterator struct {
ReferenceSemanticsImpl
Bytes []byte
Init int
End int
}
func (*BytesIterator) Boolean ¶
func (bi *BytesIterator) Boolean() Bool
func (*BytesIterator) Clone ¶
func (bi *BytesIterator) Clone() Value
func (*BytesIterator) Equals ¶
func (bi *BytesIterator) Equals(Value) Bool
func (*BytesIterator) IsCallable ¶
func (bi *BytesIterator) IsCallable() Bool
func (*BytesIterator) IsIterable ¶
func (bi *BytesIterator) IsIterable() Bool
func (*BytesIterator) Iterator ¶
func (bi *BytesIterator) Iterator() Value
func (*BytesIterator) Key ¶
func (bi *BytesIterator) Key() Value
func (*BytesIterator) Next ¶
func (bi *BytesIterator) Next() bool
func (BytesIterator) String ¶
func (bi BytesIterator) String() string
func (*BytesIterator) Type ¶
func (bi *BytesIterator) Type() string
func (*BytesIterator) Value ¶
func (bi *BytesIterator) Value() Value
type CoreFunction ¶
type CoreFunction struct {
ReferenceSemanticsImpl
Code []uint64
Info []freeInfo
Free int
Arity int
IsVar bool
ScriptName string
}
func (*CoreFunction) Boolean ¶
func (c *CoreFunction) Boolean() Bool
func (*CoreFunction) Clone ¶
func (f *CoreFunction) Clone() Value
func (*CoreFunction) Equals ¶
func (c *CoreFunction) Equals(other Value) Bool
func (*CoreFunction) IsCallable ¶
func (c *CoreFunction) IsCallable() Bool
func (*CoreFunction) IsIterable ¶
func (c *CoreFunction) IsIterable() Bool
func (*CoreFunction) Iterator ¶
func (c *CoreFunction) Iterator() Value
func (CoreFunction) String ¶
func (f CoreFunction) String() string
func (*CoreFunction) Type ¶
func (c *CoreFunction) Type() string
type Error ¶
type Error struct {
ValueSemanticsImpl
Message Value
}
func (Error) IsCallable ¶
func (Error) IsIterable ¶
type FileHandler ¶
type FileHandler struct {
ReferenceSemanticsImpl
Handler *os.File
IsClosed bool
}
FileHandler API Type FileHandler is a wrap over *os.File
func (*FileHandler) Boolean ¶
func (file *FileHandler) Boolean() Bool
Implementation of the interface Value
func (*FileHandler) Clone ¶
func (file *FileHandler) Clone() Value
func (*FileHandler) Equals ¶
func (file *FileHandler) Equals(other Value) Bool
func (*FileHandler) IsCallable ¶
func (file *FileHandler) IsCallable() Bool
func (*FileHandler) IsIterable ¶
func (file *FileHandler) IsIterable() Bool
func (*FileHandler) Iterator ¶
func (file *FileHandler) Iterator() Value
func (*FileHandler) String ¶
func (file *FileHandler) String() string
func (*FileHandler) Type ¶
func (file *FileHandler) Type() string
type Function ¶
type Function struct {
ReferenceSemanticsImpl
Free []Value
CoreFn *CoreFunction
}
func (*Function) IsCallable ¶
func (*Function) IsIterable ¶
type GlobalState ¶
type Integer ¶
type Integer int64
func StringLength ¶
func (Integer) IsCallable ¶
func (Integer) IsIterable ¶
type IntegerIterator ¶
type IntegerIterator struct {
ReferenceSemanticsImpl
Init Integer
End Integer
}
func (*IntegerIterator) Boolean ¶
func (it *IntegerIterator) Boolean() Bool
func (*IntegerIterator) Clone ¶
func (it *IntegerIterator) Clone() Value
func (*IntegerIterator) Equals ¶
func (it *IntegerIterator) Equals(Value) Bool
func (*IntegerIterator) IsCallable ¶
func (it *IntegerIterator) IsCallable() Bool
func (*IntegerIterator) IsIterable ¶
func (it *IntegerIterator) IsIterable() Bool
func (*IntegerIterator) Iterator ¶
func (it *IntegerIterator) Iterator() Value
func (*IntegerIterator) Key ¶
func (it *IntegerIterator) Key() Value
func (*IntegerIterator) Next ¶
func (it *IntegerIterator) Next() bool
func (IntegerIterator) String ¶
func (it IntegerIterator) String() string
func (*IntegerIterator) Type ¶
func (it *IntegerIterator) Type() string
func (*IntegerIterator) Value ¶
func (it *IntegerIterator) Value() Value
type Interpreter ¶
type Interpreter struct {
// contains filtered or unexported fields
}
func NewDebugger ¶
func NewDebugger(path string, extensionlibloader map[string]func() Value) (*Interpreter, error)
func NewInterpreter ¶
func NewInterpreter(path string, extensionlibloader map[string]func() Value) (*Interpreter, error)
func (*Interpreter) Debug ¶
func (i *Interpreter) Debug() (Result, error)
func (*Interpreter) MeasureRunTime ¶
func (i *Interpreter) MeasureRunTime() (Result, error)
func (*Interpreter) PrintCallStack ¶
func (i *Interpreter) PrintCallStack()
func (*Interpreter) Run ¶
func (i *Interpreter) Run() (Result, error)
type LibsLoader ¶
type Object ¶
type Object struct {
ReferenceSemanticsImpl
Value map[string]Value
}
func (*Object) IsCallable ¶
func (*Object) IsIterable ¶
func (*Object) MarshalJSON ¶
type ObjectIterator ¶
type ObjectIterator struct {
ReferenceSemanticsImpl
Keys []string
Obj map[string]Value
Init int
End int
}
func (*ObjectIterator) Boolean ¶
func (it *ObjectIterator) Boolean() Bool
func (*ObjectIterator) Clone ¶
func (it *ObjectIterator) Clone() Value
func (*ObjectIterator) Equals ¶
func (it *ObjectIterator) Equals(Value) Bool
func (*ObjectIterator) IsCallable ¶
func (it *ObjectIterator) IsCallable() Bool
func (*ObjectIterator) IsIterable ¶
func (it *ObjectIterator) IsIterable() Bool
func (*ObjectIterator) Iterator ¶
func (it *ObjectIterator) Iterator() Value
func (*ObjectIterator) Key ¶
func (it *ObjectIterator) Key() Value
func (*ObjectIterator) Next ¶
func (it *ObjectIterator) Next() bool
func (ObjectIterator) String ¶
func (it ObjectIterator) String() string
func (*ObjectIterator) Type ¶
func (it *ObjectIterator) Type() string
func (*ObjectIterator) Value ¶
func (it *ObjectIterator) Value() Value
type ReferenceSemanticsImpl ¶
type ReferenceSemanticsImpl struct{}
func (*ReferenceSemanticsImpl) Binop ¶
func (i *ReferenceSemanticsImpl) Binop(uint64, Value) (Value, error)
func (*ReferenceSemanticsImpl) Boolean ¶
func (i *ReferenceSemanticsImpl) Boolean() Bool
func (*ReferenceSemanticsImpl) Call ¶
func (i *ReferenceSemanticsImpl) Call(args ...Value) (Value, error)
func (*ReferenceSemanticsImpl) Clone ¶
func (i *ReferenceSemanticsImpl) Clone() Value
func (*ReferenceSemanticsImpl) Equals ¶
func (i *ReferenceSemanticsImpl) Equals(Value) Bool
func (*ReferenceSemanticsImpl) IsCallable ¶
func (i *ReferenceSemanticsImpl) IsCallable() Bool
func (*ReferenceSemanticsImpl) IsIterable ¶
func (i *ReferenceSemanticsImpl) IsIterable() Bool
func (*ReferenceSemanticsImpl) Iterator ¶
func (i *ReferenceSemanticsImpl) Iterator() Value
func (*ReferenceSemanticsImpl) MarshalJSON ¶
func (i *ReferenceSemanticsImpl) MarshalJSON() ([]byte, error)
func (*ReferenceSemanticsImpl) ObjectKey ¶
func (i *ReferenceSemanticsImpl) ObjectKey() string
func (*ReferenceSemanticsImpl) Prefix ¶
func (i *ReferenceSemanticsImpl) Prefix(uint64) (Value, error)
func (ReferenceSemanticsImpl) String ¶
func (i ReferenceSemanticsImpl) String() string
func (*ReferenceSemanticsImpl) Type ¶
func (i *ReferenceSemanticsImpl) Type() string
type String ¶
type String struct {
ReferenceSemanticsImpl
Runes []rune
Value string
}
func (*String) IsCallable ¶
func (*String) IsIterable ¶
func (*String) MarshalJSON ¶
type StringIterator ¶
type StringIterator struct {
ReferenceSemanticsImpl
Runes []rune
Init int
End int
}
func (*StringIterator) Boolean ¶
func (it *StringIterator) Boolean() Bool
func (*StringIterator) Clone ¶
func (it *StringIterator) Clone() Value
func (*StringIterator) Equals ¶
func (it *StringIterator) Equals(Value) Bool
func (*StringIterator) IsCallable ¶
func (it *StringIterator) IsCallable() Bool
func (*StringIterator) IsIterable ¶
func (it *StringIterator) IsIterable() Bool
func (*StringIterator) Iterator ¶
func (it *StringIterator) Iterator() Value
func (*StringIterator) Key ¶
func (it *StringIterator) Key() Value
func (*StringIterator) Next ¶
func (it *StringIterator) Next() bool
func (StringIterator) String ¶
func (it StringIterator) String() string
func (*StringIterator) Type ¶
func (it *StringIterator) Type() string
func (*StringIterator) Value ¶
func (it *StringIterator) Value() Value
type Thread ¶
type Thread struct {
ReferenceSemanticsImpl
Frames []frame
Stack []Value
Script *Script
Frame *frame
Invoker *Thread
State ThreadState
Channel Value
Reg uint64
// contains filtered or unexported fields
}
type ThreadState ¶
type ThreadState int
const ( Ready ThreadState = iota Running Suspended Waiting Completed )
func (ThreadState) String ¶
func (state ThreadState) String() string
type Value ¶
type Value interface {
Boolean() Bool
Prefix(uint64) (Value, error)
Binop(uint64, Value) (Value, error)
IGet(Value) (Value, error)
ISet(Value, Value) error
Equals(Value) Bool
IsIterable() Bool
Iterator() Value
IsCallable() Bool
Call(args ...Value) (Value, error)
String() string
Type() string
Clone() Value
ObjectKey() string
}
func IsMemberOf ¶
type ValueSemanticsImpl ¶
type ValueSemanticsImpl struct{}
func (ValueSemanticsImpl) Boolean ¶
func (i ValueSemanticsImpl) Boolean() Bool
func (ValueSemanticsImpl) Clone ¶
func (i ValueSemanticsImpl) Clone() Value
func (ValueSemanticsImpl) Equals ¶
func (i ValueSemanticsImpl) Equals(Value) Bool
func (ValueSemanticsImpl) IsCallable ¶
func (i ValueSemanticsImpl) IsCallable() Bool
func (ValueSemanticsImpl) IsIterable ¶
func (i ValueSemanticsImpl) IsIterable() Bool
func (ValueSemanticsImpl) Iterator ¶
func (i ValueSemanticsImpl) Iterator() Value
func (ValueSemanticsImpl) MarshalJSON ¶
func (i ValueSemanticsImpl) MarshalJSON() ([]byte, error)
func (ValueSemanticsImpl) ObjectKey ¶
func (i ValueSemanticsImpl) ObjectKey() string
func (ValueSemanticsImpl) String ¶
func (i ValueSemanticsImpl) String() string
func (ValueSemanticsImpl) Type ¶
func (i ValueSemanticsImpl) Type() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.