Documentation ¶
Index ¶
- Constants
- Variables
- func DumpString(in Dumper) string
- func DumpVals(in []Val, out io.Writer) error
- func Error(pos Pos, spec string, args ...interface{}) error
- func EvalOps(ops []Op, thread *Thread, registers []Val, stack *Stack) error
- func Init()
- func IsId(c rune) bool
- func MinInt(x, y int) int
- func NewError(pos Pos, spec string, args ...interface{}) error
- func SkipSpace(in *bufio.Reader, pos *Pos) error
- func Unique(prefix string) string
- type AbcModule
- type And
- type Arg
- type Binding
- type BoolType
- func (_ *BoolType) Bool(val Val) bool
- func (_ *BoolType) Compare(x, y Val) Order
- func (_ *BoolType) Dump(val Val, out io.Writer) error
- func (_ *BoolType) Negate(val *Val)
- func (_ *BoolType) New(name string, parents ...Type) ValType
- func (_ *BoolType) Print(val Val, out io.Writer) error
- func (self *BoolType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Branch
- type BreakType
- type Buffer
- type BufferType
- func (_ *BufferType) Bool(val Val) bool
- func (self *BufferType) Clone(val Val) interface{}
- func (_ *BufferType) Compare(x, y Val) Order
- func (self *BufferType) Dump(val Val, out io.Writer) error
- func (_ *BufferType) Iter(val Val, pos Pos) (Iter, error)
- func (_ *BufferType) New(name string, parents ...Type) ValType
- func (_ *BufferType) Print(val Val, out io.Writer) error
- func (_ *BufferType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Byte
- type ByteType
- func (_ *ByteType) Bool(val Val) bool
- func (_ *ByteType) Compare(x, y Val) Order
- func (_ *ByteType) Dump(val Val, out io.Writer) error
- func (self *ByteType) Is(x, y Val) bool
- func (self *ByteType) Negate(val *Val)
- func (_ *ByteType) New(name string, parents ...Type) ValType
- func (self *ByteType) Print(val Val, out io.Writer) error
- func (self *ByteType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Call
- type CallForm
- func (self *CallForm) Compile(in *Forms, out []Op, scope *Scope) ([]Op, error)
- func (self *CallForm) Do(action func(Form) error) error
- func (self *CallForm) Dump(out io.Writer) error
- func (self *CallForm) Init(id *Id, args *Group, pos Pos) *CallForm
- func (self *CallForm) Quote(in *Forms, scope *Scope, thread *Thread, registers []Val, pos Pos) (Val, error)
- type CallType
- type CharType
- func (_ *CharType) Bool(val Val) bool
- func (_ *CharType) Compare(x, y Val) Order
- func (_ *CharType) Dump(val Val, out io.Writer) error
- func (self *CharType) Negate(val *Val)
- func (_ *CharType) New(name string, parents ...Type) ValType
- func (_ *CharType) Print(val Val, out io.Writer) error
- func (_ *CharType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Check
- type Core
- type DataModule
- type Drop
- type Dumper
- type Dup
- type For
- type Form
- type FormBase
- type Forms
- type Function
- func (self *Function) AddMethod(methods ...*Method)
- func (self *Function) Call(thread *Thread, stack *Stack, pos Pos) error
- func (self *Function) Init(name string) *Function
- func (self *Function) MethodName(args []Arg, rets []Ret) string
- func (self *Function) NewMethod(args []Arg, rets []Ret, imp MethodImp) *Method
- func (self *Function) RemoveMethod(method *Method)
- type FunctionType
- func (_ *FunctionType) Call(target Val, thread *Thread, stack *Stack, pos Pos) error
- func (_ *FunctionType) Compare(x, y Val) Order
- func (_ *FunctionType) Dump(val Val, out io.Writer) error
- func (_ *FunctionType) New(name string, parents ...Type) ValType
- func (self *FunctionType) Print(val Val, out io.Writer) error
- func (self *FunctionType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Get
- type Group
- func (self *Group) Compile(in *Forms, out []Op, scope *Scope) ([]Op, error)
- func (self *Group) Do(action func(Form) error) error
- func (self *Group) Dump(out io.Writer) error
- func (self *Group) Init(body []Form, pos Pos) *Group
- func (self *Group) Push(form Form)
- func (self *Group) Quote(in *Forms, scope *Scope, thread *Thread, registers []Val, pos Pos) (Val, error)
- type GroupType
- type Id
- type IdType
- type ImageModule
- type Int
- type IntType
- func (_ *IntType) Bool(val Val) bool
- func (_ *IntType) Compare(x, y Val) Order
- func (_ *IntType) Dump(val Val, out io.Writer) error
- func (self *IntType) Is(x, y Val) bool
- func (_ *IntType) Iter(val Val, pos Pos) (Iter, error)
- func (_ *IntType) Negate(val *Val)
- func (_ *IntType) New(name string, parents ...Type) ValType
- func (self *IntType) Print(val Val, out io.Writer) error
- func (self *IntType) Unquote(val Val, scope *Scope, pos Pos) Form
- type IoModule
- type Iter
- type IterModule
- type IterType
- func (_ *IterType) Compare(x, y Val) Order
- func (self *IterType) Dump(val Val, out io.Writer) error
- func (_ *IterType) Iter(val Val, pos Pos) (Iter, error)
- func (_ *IterType) New(name string, parents ...Type) ValType
- func (self *IterType) Print(val Val, out io.Writer) error
- func (self *IterType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Lambda
- type LambdaOp
- type LambdaType
- func (_ *LambdaType) Call(target Val, thread *Thread, stack *Stack, pos Pos) error
- func (_ *LambdaType) Compare(x, y Val) Order
- func (self *LambdaType) Dump(val Val, out io.Writer) error
- func (_ *LambdaType) New(name string, parents ...Type) ValType
- func (self *LambdaType) Print(val Val, out io.Writer) error
- func (self *LambdaType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Let
- type Literal
- type Load
- type Macro
- type MacroImp
- type MacroType
- type Map
- type MathModule
- type MetaType
- type Method
- type MethodImp
- type MethodOp
- type MethodType
- func (_ *MethodType) Call(target Val, thread *Thread, stack *Stack, pos Pos) error
- func (_ *MethodType) Compare(x, y Val) Order
- func (_ *MethodType) Dump(val Val, out io.Writer) error
- func (_ *MethodType) New(name string, parents ...Type) ValType
- func (self *MethodType) Print(val Val, out io.Writer) error
- func (self *MethodType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Module
- type ModuleType
- func (_ *ModuleType) Compare(x, y Val) Order
- func (self *ModuleType) Dump(val Val, out io.Writer) error
- func (_ *ModuleType) Get(source Val, key string, pos Pos) (Val, error)
- func (_ *ModuleType) Keys(val Val) []string
- func (_ *ModuleType) New(name string, parents ...Type) ValType
- func (self *ModuleType) Print(val Val, out io.Writer) error
- func (_ *ModuleType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Negate
- type NegateForm
- func (self *NegateForm) Compile(in *Forms, out []Op, scope *Scope) ([]Op, error)
- func (self *NegateForm) Do(action func(Form) error) error
- func (self *NegateForm) Dump(out io.Writer) error
- func (self *NegateForm) Init(form Form, pos Pos) *NegateForm
- func (self *NegateForm) Quote(in *Forms, scope *Scope, thread *Thread, registers []Val, pos Pos) (Val, error)
- type NilType
- func (_ *NilType) Bool(val Val) bool
- func (_ *NilType) Compare(x, y Val) Order
- func (_ *NilType) Dump(val Val, out io.Writer) error
- func (_ *NilType) Get(source Val, key string, pos Pos) (Val, error)
- func (_ *NilType) Iter(val Val, scope *Scope, pos Pos) (Iter, error)
- func (_ *NilType) Negate(val *Val)
- func (_ *NilType) New(name string, parents ...Type) ValType
- func (self *NilType) Print(val Val, out io.Writer) error
- func (self *NilType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Op
- type OpBase
- type Or
- type Order
- type Pair
- type PairForm
- func (self *PairForm) Compile(in *Forms, out []Op, scope *Scope) ([]Op, error)
- func (self *PairForm) Do(action func(Form) error) error
- func (self *PairForm) Dump(out io.Writer) error
- func (self *PairForm) Init(left, right Form, pos Pos) *PairForm
- func (self *PairForm) Quote(in *Forms, scope *Scope, thread *Thread, registers []Val, pos Pos) (Val, error)
- type PairOp
- type PairType
- func (_ *PairType) Compare(x, y Val) Order
- func (_ *PairType) Dump(val Val, out io.Writer) error
- func (_ *PairType) Negate(val *Val)
- func (_ *PairType) New(name string, parents ...Type) ValType
- func (_ *PairType) Print(val Val, out io.Writer) error
- func (self *PairType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Pause
- type PngModule
- type Pos
- type Push
- type Quote
- func (self *Quote) Compile(in *Forms, out []Op, scope *Scope) ([]Op, error)
- func (self *Quote) Do(action func(Form) error) error
- func (self *Quote) Dump(out io.Writer) error
- func (self *Quote) Init(form Form, pos Pos) *Quote
- func (self *Quote) Quote(in *Forms, scope *Scope, thread *Thread, registers []Val, pos Pos) (Val, error)
- type QuoteOp
- type QuoteType
- func (_ *QuoteType) Bool(val Val) bool
- func (_ *QuoteType) Compare(x, y Val) Order
- func (_ *QuoteType) Dump(val Val, out io.Writer) error
- func (_ *QuoteType) Negate(val *Val)
- func (_ *QuoteType) New(name string, parents ...Type) ValType
- func (self *QuoteType) Print(val Val, out io.Writer) error
- func (self *QuoteType) Unquote(val Val, scope *Scope, pos Pos) Form
- type ReaderType
- type Record
- func (self *Record) Clone() *Record
- func (self *Record) Compare(other *Record) Order
- func (self *Record) Dump(out io.Writer) error
- func (self *Record) Find(key string) (int, bool)
- func (self *Record) Get(key string, missingVal Val) Val
- func (self *Record) Insert(i int, key string, val Val)
- func (self *Record) Len() int
- func (self *Record) Merge(source *Record)
- func (self *Record) Set(key string, val Val)
- type RecordField
- type RecordOp
- type RecordType
- func (_ *RecordType) Clone(val Val) interface{}
- func (_ *RecordType) Compare(x, y Val) Order
- func (self *RecordType) Dump(val Val, out io.Writer) error
- func (_ *RecordType) Get(source Val, key string, pos Pos) (Val, error)
- func (_ *RecordType) Iter(val Val, pos Pos) (Iter, error)
- func (_ *RecordType) Negate(val *Val)
- func (_ *RecordType) New(name string, parents ...Type) ValType
- func (self *RecordType) Print(val Val, out io.Writer) error
- func (_ *RecordType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Registers
- type Ret
- type Rgba
- type RgbaType
- type Scope
- func (self *Scope) AddFunction(name string) *Function
- func (self *Scope) AddMacro(name string, argCount int, imp MacroImp)
- func (self *Scope) AddMethod(name string, args []Arg, rets []Ret, imp MethodImp) *Method
- func (self *Scope) AddModule(name string, module *Module)
- func (self *Scope) AddType(val Type)
- func (self *Scope) AddVal(name string, dataType ValType, data interface{})
- func (self *Scope) Compile(in []Form, out []Op) ([]Op, error)
- func (self *Scope) Eval(source string, thread *Thread, registers []Val, stack *Stack) error
- func (self *Scope) EvalForm(in *Forms, stack *Stack) error
- func (self *Scope) Extend(source *Scope) *Scope
- func (self *Scope) Get(key string) *Binding
- func (self *Scope) Include(filePath string, action func([]Form) error) error
- func (self *Scope) Init(parent *Scope) *Scope
- func (self *Scope) Let(key string, pos Pos) (int, error)
- func (self *Scope) Load(filePath string, stack *Stack) error
- func (self *Scope) Parse(in *bufio.Reader, out []Form, pos *Pos) ([]Form, error)
- func (self *Scope) ParseBody(in *bufio.Reader, end rune, create func([]Form, Pos) Form, depth int, pos *Pos) (Form, error)
- func (self *Scope) ParseChar(in *bufio.Reader, pos *Pos) (Form, error)
- func (self *Scope) ParseForm(in *bufio.Reader, pos *Pos) (Form, error)
- func (self *Scope) ParseGroup(in *bufio.Reader, pos *Pos) (Form, error)
- func (self *Scope) ParseId(in *bufio.Reader, c rune, pos *Pos) (Form, error)
- func (self *Scope) ParseNegate(in *bufio.Reader, pos *Pos) (Form, error)
- func (self *Scope) ParseNumber(in *bufio.Reader, c rune, pos *Pos) (Form, error)
- func (self *Scope) ParsePair(in *bufio.Reader, pos *Pos) (Form, error)
- func (self *Scope) ParseQuote(in *bufio.Reader, pos *Pos) (Form, error)
- func (self *Scope) ParseScope(in *bufio.Reader, pos *Pos) (Form, error)
- func (self *Scope) ParseStack(in *bufio.Reader, pos *Pos) (Form, error)
- func (self *Scope) ParseString(in *bufio.Reader, pos *Pos) (Form, error)
- func (self *Scope) ParseUnquote(in *bufio.Reader, pos *Pos) (Form, error)
- func (self *Scope) Set(key string, val Val)
- func (self *Scope) Unique(key string) string
- func (self *Scope) Use(source Val, names []string, pos Pos) error
- type ScopeForm
- func (self *ScopeForm) Compile(in *Forms, out []Op, scope *Scope) ([]Op, error)
- func (self *ScopeForm) Do(action func(Form) error) error
- func (self *ScopeForm) Dump(out io.Writer) error
- func (self *ScopeForm) Init(body []Form, pos Pos) *ScopeForm
- func (self *ScopeForm) Quote(in *Forms, scope *Scope, thread *Thread, registers []Val, pos Pos) (Val, error)
- type ScopeOp
- type ScopeType
- type SequenceType
- type Stack
- func (self *Stack) Clear()
- func (self *Stack) Clone() *Stack
- func (self Stack) Compare(other Stack) Order
- func (self Stack) Dump(out io.Writer) error
- func (self *Stack) Init(items []Val) *Stack
- func (self Stack) Len() int
- func (self Stack) Peek() *Val
- func (self *Stack) Pop() *Val
- func (self *Stack) PopFront() *Val
- func (self Stack) Print(out io.Writer) error
- func (self *Stack) Push(vals ...Val)
- func (self *Stack) Reset()
- func (self *Stack) String() string
- func (self *Stack) Unquote(scope *Scope, pos Pos) Form
- type StackForm
- func (self *StackForm) Compile(in *Forms, out []Op, scope *Scope) ([]Op, error)
- func (self *StackForm) Do(action func(Form) error) error
- func (self *StackForm) Dump(out io.Writer) error
- func (self *StackForm) Init(body []Form, pos Pos) *StackForm
- func (self *StackForm) Quote(in *Forms, scope *Scope, thread *Thread, registers []Val, pos Pos) (Val, error)
- type StackOp
- type StackType
- func (_ *StackType) Bool(val Val) bool
- func (self *StackType) Clone(val Val) interface{}
- func (_ *StackType) Compare(x, y Val) Order
- func (_ *StackType) Dump(val Val, out io.Writer) error
- func (_ *StackType) Iter(val Val, pos Pos) (Iter, error)
- func (_ *StackType) Negate(val *Val)
- func (_ *StackType) New(name string, parents ...Type) ValType
- func (_ *StackType) Print(val Val, out io.Writer) error
- func (_ *StackType) Unquote(val Val, scope *Scope, pos Pos) Form
- type StringModule
- type StringType
- func (_ *StringType) Bool(val Val) bool
- func (_ *StringType) Compare(x, y Val) Order
- func (_ *StringType) Dump(val Val, out io.Writer) error
- func (_ *StringType) Iter(val Val, pos Pos) (Iter, error)
- func (self *StringType) Negate(val *Val)
- func (_ *StringType) New(name string, parents ...Type) ValType
- func (_ *StringType) Print(val Val, out io.Writer) error
- func (self *StringType) Unquote(val Val, scope *Scope, pos Pos) Form
- type TargetType
- type Thread
- type ThreadOp
- type ThreadType
- type TimeDelta
- type TimeDeltaType
- func (_ *TimeDeltaType) Bool(val Val) bool
- func (_ *TimeDeltaType) Compare(x, y Val) Order
- func (_ *TimeDeltaType) Dump(val Val, out io.Writer) error
- func (self *TimeDeltaType) Negate(val *Val)
- func (_ *TimeDeltaType) New(name string, parents ...Type) ValType
- func (self *TimeDeltaType) Print(val Val, out io.Writer) error
- func (_ *TimeDeltaType) Unquote(val Val, scope *Scope, pos Pos) Form
- type TimeModule
- type TimeType
- func (_ *TimeType) Bool(val Val) bool
- func (_ *TimeType) Compare(x, y Val) Order
- func (_ *TimeType) Dump(val Val, out io.Writer) error
- func (self *TimeType) Negate(val *Val)
- func (_ *TimeType) New(name string, parents ...Type) ValType
- func (self *TimeType) Print(val Val, out io.Writer) error
- func (self *TimeType) Unquote(val Val, scope *Scope, pos Pos) Form
- type Times
- type Trait
- func (_ *Trait) Bool(val Val) bool
- func (_ *Trait) Call(target Val, scope *Scope, stack *Stack, pos Pos) error
- func (self *Trait) Clone(val Val) interface{}
- func (self *Trait) Compare(x, y Val) Order
- func (self *Trait) Dump(val Val, out io.Writer) error
- func (self *Trait) Init(name string, parents ...Type) *Trait
- func (self *Trait) Unquote(val Val, scope *Scope, pos Pos) Form
- type Type
- type TypeBase
- type UnionType
- type Unquote
- func (self *Unquote) Compile(in *Forms, out []Op, scope *Scope) ([]Op, error)
- func (self *Unquote) Do(action func(Form) error) error
- func (self *Unquote) Dump(out io.Writer) error
- func (self *Unquote) Init(form Form, pos Pos) *Unquote
- func (self *Unquote) Quote(in *Forms, scope *Scope, thread *Thread, registers []Val, pos Pos) (Val, error)
- type Val
- func (self Val) Bool() bool
- func (self Val) Call(thread *Thread, stack *Stack, pos Pos) error
- func (self Val) Clone() Val
- func (self Val) Compare(other Val) Order
- func (self Val) Dump(out io.Writer) error
- func (self Val) Get(key string, pos Pos) (Val, error)
- func (self *Val) Init(dataType ValType, data interface{})
- func (self Val) Is(other Val) bool
- func (self Val) Iter(pos Pos) (Iter, error)
- func (self Val) Keys() []string
- func (self Val) Literal(pos Pos) *Literal
- func (self *Val) Negate()
- func (self Val) Print(out io.Writer) error
- func (self Val) Unquote(scope *Scope, pos Pos) Form
- type ValType
- type ValTypeBase
- func (_ *ValTypeBase) Bool(val Val) bool
- func (_ *ValTypeBase) Clone(val Val) interface{}
- func (self *ValTypeBase) Get(source Val, key string, pos Pos) (Val, error)
- func (self *ValTypeBase) Init(name string, parents ...Type)
- func (_ *ValTypeBase) Is(x, y Val) bool
- func (_ *ValTypeBase) Keys(val Val) []string
- func (self *ValTypeBase) Name() string
- func (_ *ValTypeBase) Negate(val *Val)
- type WriterType
- type ZipModule
- type ZipWriterType
- func (_ *ZipWriterType) Compare(x, y Val) Order
- func (self *ZipWriterType) Dump(val Val, out io.Writer) error
- func (_ *ZipWriterType) New(name string, parents ...Type) ValType
- func (self *ZipWriterType) Print(val Val, out io.Writer) error
- func (self *ZipWriterType) Unquote(val Val, scope *Scope, pos Pos) Form
Constants ¶
View Source
const ( Lt = Order(-1) Eq = Order(0) Gt = Order(1) )
View Source
const ( VersionMajor = 0 VersionMinor = 24 )
View Source
const ( MIN_LINE = 1 MIN_COLUMN = 0 )
View Source
const REGISTER_COUNT = 64
Variables ¶
View Source
var Debug = false
View Source
var MinTime, MaxTime time.Time
View Source
var NilPos = NewPos("n/a")
Functions ¶
func DumpString ¶
Types ¶
type BufferType ¶
type BufferType struct {
ValTypeBase
}
var TBuffer BufferType
func (*BufferType) Bool ¶
func (_ *BufferType) Bool(val Val) bool
func (*BufferType) Clone ¶
func (self *BufferType) Clone(val Val) interface{}
func (*BufferType) Compare ¶
func (_ *BufferType) Compare(x, y Val) Order
type CallForm ¶
type CallForm struct { FormBase // contains filtered or unexported fields }
type Core ¶
type Core struct { Scope Abc AbcModule Data DataModule String StringModule Time TimeModule Zip ZipModule Image ImageModule Io IoModule Iter IterModule Math MathModule Png PngModule }
type DataModule ¶
type DataModule struct {
Module
}
func (*DataModule) Init ¶
func (self *DataModule) Init() *Module
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
func NewFunction ¶
func (*Function) RemoveMethod ¶
type FunctionType ¶
type FunctionType struct {
ValTypeBase
}
var TFunction FunctionType
func (*FunctionType) Compare ¶
func (_ *FunctionType) Compare(x, y Val) Order
type ImageModule ¶
type ImageModule struct {
Module
}
func (*ImageModule) Init ¶
func (self *ImageModule) Init() *Module
type IterModule ¶
type IterModule struct {
Module
}
func (*IterModule) Init ¶
func (self *IterModule) Init() *Module
type LambdaType ¶
type LambdaType struct {
ValTypeBase
}
var TLambda LambdaType
func (*LambdaType) Compare ¶
func (_ *LambdaType) Compare(x, y Val) Order
type Literal ¶
type Literal struct { FormBase // contains filtered or unexported fields }
func NewLiteral ¶
type MathModule ¶
type MathModule struct {
Module
}
func (*MathModule) Init ¶
func (self *MathModule) Init() *Module
type Method ¶
type Method struct {
// contains filtered or unexported fields
}
func (*Method) Applicable ¶
type MethodOp ¶
type MethodOp struct { OpBase // contains filtered or unexported fields }
func NewMethodOp ¶
type MethodType ¶
type MethodType struct {
ValTypeBase
}
var TMethod MethodType
func (*MethodType) Compare ¶
func (_ *MethodType) Compare(x, y Val) Order
type ModuleType ¶
type ModuleType struct {
ValTypeBase
}
var TModule ModuleType
func (*ModuleType) Compare ¶
func (_ *ModuleType) Compare(x, y Val) Order
func (*ModuleType) Keys ¶
func (_ *ModuleType) Keys(val Val) []string
type NegateForm ¶
type NegateForm struct { FormBase // contains filtered or unexported fields }
func NewNegateForm ¶
func NewNegateForm(form Form, pos Pos) *NegateForm
func (*NegateForm) Init ¶
func (self *NegateForm) Init(form Form, pos Pos) *NegateForm
type Order ¶
type Order = int
func CompareByte ¶
func CompareInt ¶
func CompareInt64 ¶
func ComparePointer ¶
func CompareRune ¶
func CompareString ¶
func CompareVals ¶
type PairForm ¶
type PairForm struct { FormBase // contains filtered or unexported fields }
func NewPairForm ¶
type QuoteOp ¶
type QuoteOp struct { OpBase // contains filtered or unexported fields }
func NewQuoteOp ¶
type ReaderType ¶
type ReaderType struct {
ValTypeBase
}
var TReader ReaderType
func (*ReaderType) Compare ¶
func (_ *ReaderType) Compare(x, y Val) Order
type RecordField ¶
type RecordField struct {
// contains filtered or unexported fields
}
type RecordOp ¶
type RecordOp struct { OpBase // contains filtered or unexported fields }
func NewRecordOp ¶
type RecordType ¶
type RecordType struct {
ValTypeBase
}
var TRecord RecordType
func (*RecordType) Clone ¶
func (_ *RecordType) Clone(val Val) interface{}
func (*RecordType) Compare ¶
func (_ *RecordType) Compare(x, y Val) Order
func (*RecordType) Negate ¶
func (_ *RecordType) Negate(val *Val)
type Registers ¶
type Registers = [REGISTER_COUNT]Val
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (*Scope) AddFunction ¶
func (*Scope) ParseNegate ¶
func (*Scope) ParseNumber ¶
func (*Scope) ParseString ¶
func (*Scope) ParseUnquote ¶
type ScopeForm ¶
type ScopeForm struct { FormBase // contains filtered or unexported fields }
func NewScopeForm ¶
type StackForm ¶
type StackForm struct { FormBase // contains filtered or unexported fields }
func NewStackForm ¶
type StackOp ¶
type StackOp struct { OpBase // contains filtered or unexported fields }
func NewStackOp ¶
type StringModule ¶
type StringModule struct {
Module
}
func (*StringModule) Init ¶
func (self *StringModule) Init() *Module
type StringType ¶
type StringType struct {
ValTypeBase
}
var TString StringType
func (*StringType) Bool ¶
func (_ *StringType) Bool(val Val) bool
func (*StringType) Compare ¶
func (_ *StringType) Compare(x, y Val) Order
func (*StringType) Negate ¶
func (self *StringType) Negate(val *Val)
type TargetType ¶
type ThreadType ¶
type ThreadType struct {
ValTypeBase
}
var TThread ThreadType
func (*ThreadType) Compare ¶
func (_ *ThreadType) Compare(x, y Val) Order
type TimeDeltaType ¶
type TimeDeltaType struct {
ValTypeBase
}
var TTimeDelta TimeDeltaType
func (*TimeDeltaType) Bool ¶
func (_ *TimeDeltaType) Bool(val Val) bool
func (*TimeDeltaType) Compare ¶
func (_ *TimeDeltaType) Compare(x, y Val) Order
func (*TimeDeltaType) Negate ¶
func (self *TimeDeltaType) Negate(val *Val)
type TimeModule ¶
type TimeModule struct {
Module
}
func (*TimeModule) Init ¶
func (self *TimeModule) Init() *Module
type TypeBase ¶
type TypeBase struct {
// contains filtered or unexported fields
}
func (*TypeBase) DirectParents ¶
type Unquote ¶
type Unquote struct { FormBase // contains filtered or unexported fields }
func NewUnquote ¶
type Val ¶
type Val struct {
// contains filtered or unexported fields
}
var Nil, Undefined Val
func NewRegisters ¶
func NewRegisters() []Val
type ValType ¶
type ValType interface { Type Bool(val Val) bool Clone(val Val) interface{} Compare(x, y Val) Order Dump(val Val, out io.Writer) error Get(source Val, key string, pos Pos) (Val, error) Print(val Val, out io.Writer) error Is(x, y Val) bool Keys(val Val) []string Negate(val *Val) New(name string, parents ...Type) ValType Unquote(val Val, scope *Scope, pos Pos) Form }
type ValTypeBase ¶
type ValTypeBase struct {
TypeBase
}
func (*ValTypeBase) Bool ¶
func (_ *ValTypeBase) Bool(val Val) bool
func (*ValTypeBase) Clone ¶
func (_ *ValTypeBase) Clone(val Val) interface{}
func (*ValTypeBase) Init ¶
func (self *ValTypeBase) Init(name string, parents ...Type)
func (*ValTypeBase) Is ¶
func (_ *ValTypeBase) Is(x, y Val) bool
func (*ValTypeBase) Keys ¶
func (_ *ValTypeBase) Keys(val Val) []string
func (*ValTypeBase) Name ¶
func (self *ValTypeBase) Name() string
func (*ValTypeBase) Negate ¶
func (_ *ValTypeBase) Negate(val *Val)
type WriterType ¶
type WriterType struct {
ValTypeBase
}
var TWriter WriterType
func (*WriterType) Compare ¶
func (_ *WriterType) Compare(x, y Val) Order
type ZipWriterType ¶
type ZipWriterType struct {
ValTypeBase
}
var TZipWriter ZipWriterType
func (*ZipWriterType) Compare ¶
func (_ *ZipWriterType) Compare(x, y Val) Order
Source Files ¶
- abc_module.go
- and.go
- arg.go
- binding.go
- bool_type.go
- branch.go
- break.go
- buffer_type.go
- byte_type.go
- call.go
- call_form.go
- call_type.go
- char_type.go
- check.go
- compare.go
- core.go
- data_module.go
- drop.go
- dump.go
- dup.go
- error.go
- for.go
- form.go
- forms.go
- function.go
- function_type.go
- get.go
- gfoo.go
- group.go
- group_type.go
- id.go
- id_type.go
- image_module.go
- int_type.go
- io_module.go
- iter.go
- iter_module.go
- iter_type.go
- lambda.go
- lambda_op.go
- lambda_type.go
- let.go
- literal.go
- load.go
- macro.go
- macro_type.go
- map.go
- math_module.go
- meta_type.go
- method.go
- method_op.go
- method_type.go
- module.go
- module_type.go
- negate.go
- negate_form.go
- nil_type.go
- op.go
- or.go
- pair.go
- pair_form.go
- pair_op.go
- pair_type.go
- parse.go
- pause.go
- png_module.go
- pos.go
- push.go
- quote.go
- quote_op.go
- quote_type.go
- reader_type.go
- record.go
- record_op.go
- record_type.go
- register.go
- ret.go
- rgba.go
- rgba_type.go
- scope.go
- scope_form.go
- scope_op.go
- scope_type.go
- sequence_type.go
- stack.go
- stack_form.go
- stack_op.go
- stack_type.go
- string_module.go
- string_type.go
- target_type.go
- thread.go
- thread_op.go
- thread_type.go
- time.go
- time_delta.go
- time_delta_type.go
- time_module.go
- time_type.go
- times.go
- trait.go
- type.go
- union.go
- unique.go
- unquote.go
- val.go
- val_type.go
- writer_type.go
- zip_module.go
- zip_writer_type.go
Click to show internal directories.
Click to hide internal directories.