Documentation ¶
Index ¶
- Variables
- func NewG() (*G, E)
- func NewMac(g *G, env *Env, id *Sym, args []Arg) (*Mac, E)
- func NewTask(g *G, env *Env, id *Sym, inbox Chan, body Vec) (*Task, E)
- func ParseArgs(g *G, task *Task, env *Env, in Vec, args_env *Env) (Args, E)
- type Abort
- type AbortType
- type Arg
- type ArgList
- type ArgType
- type Args
- type BasicIterType
- type BasicType
- func (t *BasicType) ArgList(g *G, _ Val) (*ArgList, E)
- func (_ *BasicType) Bool(g *G, val Val) (bool, E)
- func (t *BasicType) Call(g *G, task *Task, env *Env, val Val, args Vec, args_env *Env) (Val, E)
- func (_ *BasicType) Clone(g *G, val Val) (Val, E)
- func (_ *BasicType) Drop(g *G, val Val, n Int) (out Val, e E)
- func (t *BasicType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *BasicType) Dup(g *G, val Val) (Val, E)
- func (t *BasicType) EachParent(f func(Type))
- func (t *BasicType) Env() *Env
- func (_ *BasicType) Eq(g *G, lhs, rhs Val) (bool, E)
- func (_ *BasicType) Eval(g *G, task *Task, env *Env, val Val, args_env *Env) (Val, E)
- func (_ *BasicType) Expand(g *G, task *Task, env *Env, val Val, depth Int) (Val, E)
- func (_ *BasicType) Extenv(g *G, src, dst *Env, val Val, clone bool) E
- func (t *BasicType) Id() *Sym
- func (t *BasicType) Index(g *G, val Val, key Vec) (Val, E)
- func (t *BasicType) Init(g *G, id *Sym, parents []Type) E
- func (_ *BasicType) Is(g *G, lhs, rhs Val) bool
- func (t *BasicType) Isa(parent Type) Type
- func (t *BasicType) Iter(g *G, val Val) (Val, E)
- func (t *BasicType) Len(g *G, val Val) (Int, E)
- func (t *BasicType) Pop(g *G, val Val) (Val, Val, E)
- func (_ *BasicType) Print(g *G, val Val, out *bufio.Writer) E
- func (t *BasicType) Push(g *G, val Val, its ...Val) (Val, E)
- func (_ *BasicType) Quote(g *G, task *Task, env *Env, val Val, args_env *Env) (Val, E)
- func (t *BasicType) SetIndex(g *G, task *Task, env *Env, val Val, key Vec, set Setter) (Val, Val, E)
- func (_ *BasicType) Splat(g *G, val Val, out Vec) (Vec, E)
- func (t *BasicType) String() string
- func (_ *BasicType) Type(g *G) Type
- type BasicWrap
- type BasicWrapType
- func (_ *BasicWrapType) Bool(g *G, val Val) (bool, E)
- func (_ *BasicWrapType) Clone(g *G, val Val) (Val, E)
- func (_ *BasicWrapType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *BasicWrapType) Dup(g *G, val Val) (Val, E)
- func (_ *BasicWrapType) Eq(g *G, lhs, rhs Val) (bool, E)
- func (_ *BasicWrapType) Extenv(g *G, src, dst *Env, val Val, clone bool) E
- type Bin
- type BinIter
- type BinIterType
- func (_ *BinIterType) Bool(g *G, val Val) (bool, E)
- func (_ *BinIterType) Drop(g *G, val Val, n Int) (Val, E)
- func (_ *BinIterType) Dup(g *G, val Val) (Val, E)
- func (_ *BinIterType) Eq(g *G, lhs, rhs Val) (bool, E)
- func (_ *BinIterType) Pop(g *G, val Val) (Val, Val, E)
- func (_ *BinIterType) Splat(g *G, val Val, out Vec) (Vec, E)
- type BinType
- func (_ *BinType) Bool(g *G, val Val) (bool, E)
- func (_ *BinType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *BinType) Dup(g *G, val Val) (Val, E)
- func (_ *BinType) Eq(g *G, lhs, rhs Val) (bool, E)
- func (_ *BinType) Index(g *G, val Val, key Vec) (Val, E)
- func (_ *BinType) Iter(g *G, val Val) (Val, E)
- func (_ *BinType) Len(g *G, val Val) (Int, E)
- func (_ *BinType) Print(g *G, val Val, out *bufio.Writer) E
- func (_ *BinType) SetIndex(g *G, task *Task, env *Env, val Val, key Vec, set Setter) (Val, Val, E)
- type Byte
- type ByteType
- func (_ *ByteType) Add(g *G, x Val, y Val) (Val, E)
- func (_ *ByteType) Bool(g *G, val Val) (bool, E)
- func (_ *ByteType) Byte(g *G, val Val) (Byte, E)
- func (_ *ByteType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *ByteType) Eq(g *G, lhs, rhs Val) (bool, E)
- func (_ *ByteType) Int(g *G, val Val) (Int, E)
- func (_ *ByteType) Print(g *G, val Val, out *bufio.Writer) E
- func (_ *ByteType) Sub(g *G, x Val, y Val) (Val, E)
- type Catch
- type Chan
- type ChanType
- func (_ *ChanType) Bool(g *G, val Val) (bool, E)
- func (_ *ChanType) Drop(g *G, val Val, n Int) (Val, E)
- func (_ *ChanType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *ChanType) Len(g *G, val Val) (Int, E)
- func (_ *ChanType) Pop(g *G, val Val) (Val, Val, E)
- func (_ *ChanType) Push(g *G, val Val, its ...Val) (Val, E)
- type Char
- type CharSet
- type CharType
- type E
- type EBasic
- type EImpure
- type EImpureType
- type ERead
- type EReadType
- type EType
- type EUnknown
- type EUnknownType
- type Env
- func (e *Env) Add(key *Sym, val Val) bool
- func (env *Env) AddConst(g *G, id string, val Val) E
- func (env *Env) AddFun(g *G, id string, imp FunImp, args ...Arg) (*Fun, E)
- func (env *Env) AddPrim(g *G, id string, pure bool, imp PrimImp, args ...Arg) E
- func (env *Env) AddPun(g *G, id string, imp FunImp, args ...Arg) (*Fun, E)
- func (e *Env) AddType(g *G, t Type, id string, parents ...Type) E
- func (e *Env) Clear()
- func (env *Env) Clone(g *G, dst *Env) (e E)
- func (e *Env) Dump(g *G, out *bufio.Writer) E
- func (e *Env) Dup(dst *Env) *Env
- func (dst *Env) Extend(g *G, src *Env, clone bool, keys ...*Sym) E
- func (e *Env) Find(key *Sym) (int, *Var)
- func (e *Env) Get(g *G, task *Task, key *Sym, args_env *Env, silent bool) (Val, E)
- func (e *Env) GetVar(g *G, key *Sym, silent bool) (*Var, int, E)
- func (e *Env) InitAbc(g *G)
- func (e *Env) InitIO(g *G)
- func (e *Env) InitMath(g *G)
- func (e *Env) InitTime(g *G)
- func (e *Env) Insert(i int, key *Sym) *Var
- func (e *Env) InsertVar(i int, v *Var)
- func (e *Env) Len() Int
- func (env *Env) Let(g *G, key *Sym, val Val) E
- func (e *Env) Remove(key *Sym) Val
- func (e *Env) Resolve(g *G, task *Task, key *Sym, args_env *Env, silent bool) (Val, E)
- func (env *Env) Set(g *G, task *Task, key Val, val Val, args_env *Env) E
- func (env *Env) SetPlace(g *G, task *Task, key Vec, set Setter, args_env *Env) (val Val, e E)
- func (e *Env) Type(g *G) Type
- func (env *Env) Update(g *G, task *Task, key Val, set Setter, args_env *Env) (Val, E)
- func (env *Env) Use(g *G, src *Env, ids ...string) (e E)
- type EnvType
- type False
- type FalseType
- type Float
- func (f *Float) Abs()
- func (f *Float) Add(val Float)
- func (f Float) Cmp(val Float) int
- func (f *Float) Div(val Float)
- func (f *Float) Mul(val Float)
- func (f *Float) Neg()
- func (f *Float) Parse(g *G, in string) E
- func (f *Float) SetFloat(val float64)
- func (f *Float) SetInt(val Int)
- func (f Float) Sign() int
- func (f Float) String() string
- func (f *Float) Sub(val Float)
- func (_ Float) Type(g *G) Type
- type FloatType
- func (t *FloatType) Abs(g *G, x Val) (Val, E)
- func (t *FloatType) Add(g *G, x, y Val) (Val, E)
- func (_ *FloatType) Bool(g *G, val Val) (bool, E)
- func (t *FloatType) Div(g *G, x, y Val) (Val, E)
- func (_ *FloatType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *FloatType) Float(g *G, val Val) (Float, E)
- func (t *FloatType) Is(g *G, x, y Val) bool
- func (t *FloatType) Mul(g *G, x, y Val) (Val, E)
- func (t *FloatType) Neg(g *G, x Val) (Val, E)
- func (t *FloatType) Sub(g *G, x, y Val) (Val, E)
- type Fun
- type FunImp
- type FunType
- type G
- func (g *G) Abs(x Val) (Val, E)
- func (g *G) Add(x, y Val) (Val, E)
- func (g *G) ArgList(val Val) (*ArgList, E)
- func (g *G) Bool(val Val) (bool, E)
- func (g *G) BoolVal(val Val) (Val, E)
- func (g *G) BreakLoop(task *Task, env *Env, cause E, args_env *Env) (Val, E)
- func (g *G) Byte(val Val) (Byte, E)
- func (g *G) Call(task *Task, env *Env, val Val, args Vec, args_env *Env) (Val, E)
- func (g *G) Catch(task *Task, env *Env, val Val, args_env *Env) (Val, E)
- func (g *G) Clone(val Val) (Val, E)
- func (g *G) Div(x, y Val) (Val, E)
- func (g *G) Drop(val Val, n Int) (out Val, e E)
- func (g *G) Dump(val Val, out *bufio.Writer) E
- func (g *G) Dup(val Val) (Val, E)
- func (g *G) E(msg string, args ...interface{}) *EBasic
- func (g *G) EImpure(call Val) *EImpure
- func (g *G) EPrintString(val Val) string
- func (g *G) ERead(pos Pos, msg string, args ...interface{}) *ERead
- func (g *G) EString(val Val) string
- func (g *G) EUnknown(id *Sym) *EUnknown
- func (g *G) Eq(lhs, rhs Val) (bool, E)
- func (g *G) Eval(task *Task, env *Env, val Val, args_env *Env) (Val, E)
- func (g *G) EvalString(task *Task, env *Env, pos Pos, s string) (Val, E)
- func (g *G) Expand(task *Task, env *Env, val Val, depth Int) (Val, E)
- func (g *G) Extenv(src, dst *Env, val Val, clone bool) E
- func (g *G) FindConst(id *Sym) Val
- func (g *G) Float(x Val) (Float, E)
- func (g *G) Index(val Val, key Vec) (Val, E)
- func (g *G) Init() (*G, E)
- func (g *G) Int(x Val) (Int, E)
- func (g *G) Is(lhs, rhs Val) bool
- func (g *G) Isa(val Val, parent Type) Type
- func (g *G) Iter(val Val) (Val, E)
- func (g *G) Len(val Val) (Int, E)
- func (g *G) Load(task *Task, env, args_env *Env, path string) (Val, E)
- func (g *G) Mul(x, y Val) (Val, E)
- func (g *G) Neg(x Val) (Val, E)
- func (g *G) NewEnv() *Env
- func (g *G) NewSym(prefix string) *Sym
- func (g *G) NextSymTag() Tag
- func (g *G) Pop(val Val) (Val, Val, E)
- func (g *G) Print(val Val, out *bufio.Writer) E
- func (g *G) PrintString(val Val) (string, E)
- func (g *G) Push(val Val, its ...Val) (Val, E)
- func (g *G) Quote(task *Task, env *Env, val Val, args_env *Env) (Val, E)
- func (g *G) Read(pos *Pos, in *strings.Reader, out Vec, end CharSet) (Vec, E)
- func (g *G) ReadAll(pos *Pos, in *strings.Reader, out Vec) (Vec, E)
- func (g *G) ReadByte(pos *Pos, in *strings.Reader, out Vec) (Vec, E)
- func (g *G) ReadChar(pos *Pos, in *strings.Reader) (rune, E)
- func (g *G) ReadId(pos *Pos, in *strings.Reader, out Vec, prefix rune) (Vec, E)
- func (g *G) ReadNum(pos *Pos, in *strings.Reader, out Vec, prefix rune) (Vec, E)
- func (g *G) ReadQuote(pos *Pos, in *strings.Reader, out Vec, end CharSet) (Vec, E)
- func (g *G) ReadSplat(pos *Pos, in *strings.Reader, out Vec) (Vec, E)
- func (g *G) ReadSplice(pos *Pos, in *strings.Reader, out Vec, end CharSet) (Vec, E)
- func (g *G) ReadStr(pos *Pos, in *strings.Reader, out Vec) (Vec, E)
- func (g *G) ReadVec(pos *Pos, in *strings.Reader, out Vec) (Vec, E)
- func (g *G) SetIndex(task *Task, env *Env, val Val, key Vec, set Setter) (Val, Val, E)
- func (g *G) Splat(val Val, out Vec) (Vec, E)
- func (g *G) String(val Val) (string, E)
- func (g *G) Sub(x, y Val) (Val, E)
- func (g *G) Sym(name string, args ...interface{}) *Sym
- func (g *G) Try(task *Task, env, args_env *Env, body func() (Val, E), restarts ...*Fun) (v Val, e E)
- func (g *G) Unread(pos *Pos, in *strings.Reader, c rune) E
- func (g *G) Unwrap(val Val, silent bool) (Val, E)
- func (g *G) Version() [3]byte
- func (g *G) VersionStr() string
- func (g *G) Wrap(typ Type, val Val) (Val, E)
- type Int
- type IntIter
- type IntIterType
- func (_ *IntIterType) Bool(g *G, val Val) (bool, E)
- func (_ *IntIterType) Drop(g *G, val Val, n Int) (Val, E)
- func (_ *IntIterType) Dup(g *G, val Val) (Val, E)
- func (_ *IntIterType) Eq(g *G, lhs, rhs Val) (bool, E)
- func (_ *IntIterType) Pop(g *G, val Val) (Val, Val, E)
- func (_ *IntIterType) Splat(g *G, val Val, out Vec) (Vec, E)
- type IntType
- func (t *IntType) Abs(g *G, x Val) (Val, E)
- func (t *IntType) Add(g *G, x, y Val) (Val, E)
- func (_ *IntType) Bool(g *G, val Val) (bool, E)
- func (_ *IntType) Byte(g *G, val Val) (Byte, E)
- func (t *IntType) Div(g *G, x, y Val) (Val, E)
- func (_ *IntType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *IntType) Float(g *G, val Val) (Float, E)
- func (_ *IntType) Int(g *G, val Val) (Int, E)
- func (_ *IntType) Iter(g *G, val Val) (Val, E)
- func (t *IntType) Mul(g *G, x, y Val) (Val, E)
- func (t *IntType) Neg(g *G, x Val) (Val, E)
- func (t *IntType) Sub(g *G, x, y Val) (Val, E)
- type IterType
- type Mac
- type MacType
- type MetaType
- type Nanos
- type NanosType
- func (_ *NanosType) Div(g *G, x, y Val) (Val, E)
- func (_ *NanosType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *NanosType) Float(g *G, val Val) (Float, E)
- func (_ *NanosType) Int(g *G, val Val) (Int, E)
- func (_ *NanosType) Mul(g *G, x, y Val) (Val, E)
- func (_ *NanosType) Sub(g *G, x, y Val) (Val, E)
- type Nil
- type NilType
- type Num
- type NumType
- func (_ *NumType) Abs(g *G, val Val) (Val, E)
- func (_ *NumType) Add(g *G, x Val, _ Val) (Val, E)
- func (_ *NumType) Byte(g *G, val Val) (Byte, E)
- func (_ *NumType) Div(g *G, x Val, _ Val) (Val, E)
- func (_ *NumType) Float(g *G, val Val) (Float, E)
- func (_ *NumType) Inc(g *G, val, delta Val) (Val, E)
- func (_ *NumType) Int(g *G, val Val) (Int, E)
- func (_ *NumType) Mul(g *G, x Val, _ Val) (Val, E)
- func (_ *NumType) Neg(g *G, val Val) (Val, E)
- func (_ *NumType) Sub(g *G, x Val, _ Val) (Val, E)
- type Pos
- type Prim
- type PrimImp
- type PrimType
- type PunType
- type Quote
- type QuoteType
- func (_ *QuoteType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *QuoteType) Eq(g *G, lhs, rhs Val) (bool, E)
- func (_ *QuoteType) Eval(g *G, task *Task, env *Env, val Val, args_env *Env) (Val, E)
- func (_ *QuoteType) Quote(g *G, task *Task, env *Env, val Val, args_env *Env) (Val, E)
- func (_ *QuoteType) Unwrap(val Val) Val
- func (_ *QuoteType) Wrap(g *G, val Val) Val
- type Recall
- type RecallType
- type Restart
- type RestartType
- type Retry
- type RetryType
- type SeqType
- type Setter
- type SetterType
- type Splat
- type SplatType
- func (_ *SplatType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *SplatType) Eval(g *G, task *Task, env *Env, val Val, args_env *Env) (v Val, e E)
- func (_ *SplatType) Expand(g *G, task *Task, env *Env, val Val, depth Int) (v Val, e E)
- func (_ *SplatType) Quote(g *G, task *Task, env *Env, val Val, args_env *Env) (v Val, e E)
- func (_ *SplatType) Splat(g *G, val Val, out Vec) (Vec, E)
- func (_ *SplatType) Unwrap(val Val) Val
- func (_ *SplatType) Wrap(g *G, val Val) Val
- type Splice
- type SpliceType
- func (_ *SpliceType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *SpliceType) Eval(g *G, task *Task, env *Env, val Val, args_env *Env) (Val, E)
- func (_ *SpliceType) Quote(g *G, task *Task, env *Env, val Val, args_env *Env) (Val, E)
- func (_ *SpliceType) Unwrap(val Val) Val
- func (_ *SpliceType) Wrap(g *G, val Val) Val
- type Str
- type StrType
- func (_ *StrType) Bool(g *G, val Val) (bool, E)
- func (_ *StrType) Drop(g *G, val Val, n Int) (Val, E)
- func (_ *StrType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *StrType) Eq(g *G, lhs, rhs Val) (bool, E)
- func (_ *StrType) Len(g *G, val Val) (Int, E)
- func (_ *StrType) Print(g *G, val Val, out *bufio.Writer) E
- type Sym
- func (s *Sym) Init(g *G, tag Tag, name string) *Sym
- func (s *Sym) Lookup(g *G, task *Task, env, args_env *Env, silent bool) (Val, *Env, []Val, E)
- func (s *Sym) LookupVar(g *G, env *Env, silent bool) (v *Var, i int, _ *Env, args []Val, e E)
- func (s *Sym) String() string
- func (s *Sym) Suffix() *Sym
- func (_ *Sym) Type(g *G) Type
- type SymType
- func (_ *SymType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *SymType) Eval(g *G, task *Task, env *Env, val Val, args_env *Env) (v Val, e E)
- func (_ *SymType) Expand(g *G, task *Task, env *Env, val Val, depth Int) (v Val, e E)
- func (_ *SymType) Extenv(g *G, src, dst *Env, val Val, clone bool) E
- func (_ *SymType) SetIndex(g *G, task *Task, env *Env, in Val, key Vec, set Setter) (val Val, out Val, e E)
- type Tag
- type Task
- type TaskType
- type Time
- type TimeType
- type True
- type TrueType
- type Try
- type Type
- type Val
- type Var
- type Vec
- func (v Vec) Delete(i int) Vec
- func (v Vec) EvalExpr(g *G, task *Task, env, args_env *Env) (Val, E)
- func (v Vec) EvalVec(g *G, task *Task, env, args_env *Env) (Vec, E)
- func (v Vec) ExpandVec(g *G, task *Task, env *Env, depth Int) (Vec, E)
- func (v Vec) Len() Int
- func (v Vec) Peek(g *G) Val
- func (v Vec) PopKey(g *G, key *Sym) (Val, Val, E)
- func (v Vec) Reverse() Vec
- func (_ Vec) Type(g *G) Type
- type VecIter
- type VecIterType
- func (_ *VecIterType) Bool(g *G, val Val) (bool, E)
- func (_ *VecIterType) Drop(g *G, val Val, n Int) (Val, E)
- func (_ *VecIterType) Dup(g *G, val Val) (Val, E)
- func (_ *VecIterType) Eq(g *G, lhs, rhs Val) (bool, E)
- func (_ *VecIterType) Pop(g *G, val Val) (Val, Val, E)
- func (_ *VecIterType) Splat(g *G, val Val, out Vec) (Vec, E)
- type VecType
- func (_ *VecType) Bool(g *G, val Val) (bool, E)
- func (_ *VecType) Clone(g *G, val Val) (Val, E)
- func (_ *VecType) Drop(g *G, val Val, n Int) (Val, E)
- func (_ *VecType) Dump(g *G, val Val, out *bufio.Writer) E
- func (_ *VecType) Dup(g *G, val Val) (Val, E)
- func (_ *VecType) Eq(g *G, lhs, rhs Val) (bool, E)
- func (_ *VecType) Eval(g *G, task *Task, env *Env, val Val, args_env *Env) (Val, E)
- func (_ *VecType) Expand(g *G, task *Task, env *Env, val Val, depth Int) (Val, E)
- func (_ *VecType) Extenv(g *G, src, dst *Env, val Val, clone bool) E
- func (_ *VecType) Index(g *G, val Val, key Vec) (Val, E)
- func (_ *VecType) Is(g *G, lhs, rhs Val) bool
- func (_ *VecType) Iter(g *G, val Val) (Val, E)
- func (_ *VecType) Len(g *G, val Val) (Int, E)
- func (_ *VecType) Pop(g *G, val Val) (Val, Val, E)
- func (_ *VecType) Print(g *G, val Val, out *bufio.Writer) E
- func (_ *VecType) Push(g *G, val Val, its ...Val) (Val, E)
- func (_ *VecType) Quote(g *G, task *Task, env *Env, val Val, args_env *Env) (Val, E)
- func (_ *VecType) SetIndex(g *G, task *Task, env *Env, in Val, key Vec, set Setter) (val Val, _ Val, e E)
- func (_ *VecType) Splat(g *G, val Val, out Vec) (Vec, E)
- type WrapType
- type Writer
- type WriterType
Constants ¶
This section is empty.
Variables ¶
View Source
var TimeFormat = "2006-01-02 15:04:05"
Functions ¶
Types ¶
type BasicIterType ¶
type BasicIterType struct {
BasicType
}
type BasicType ¶
type BasicType struct {
// contains filtered or unexported fields
}
func (*BasicType) EachParent ¶
type BasicWrapType ¶
type BasicWrapType struct {
BasicType
}
type BinIterType ¶
type BinIterType struct {
BasicIterType
}
type EImpureType ¶
type EImpureType struct {
BasicType
}
type EUnknownType ¶
type EUnknownType struct {
BasicType
}
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
type G ¶
type G struct { Debug bool MainTask Task RootEnv Env AbortType AbortType BinType BinType BinIterType BinIterType ByteType ByteType ChanType ChanType CharType CharType EType EType EnvType EnvType FalseType FalseType FloatType FloatType FunType FunType IntType IntType IntIterType IntIterType IterType IterType MacType MacType MetaType MetaType NilType NilType NanosType NanosType NumType NumType PrimType PrimType PunType PunType QuoteType QuoteType RecallType RecallType RestartType RestartType RetryType RetryType SetterType SetterType SeqType SeqType SplatType SplatType SpliceType SpliceType StrType StrType SymType SymType TaskType TaskType TimeType TimeType TrueType TrueType VecType VecType VecIterType VecIterType WriterType WriterType EImpureType EImpureType EReadType EReadType EUnknownType EUnknownType NIL Nil T True F False // contains filtered or unexported fields }
func (*G) EPrintString ¶
func (*G) NextSymTag ¶
func (*G) ReadSplice ¶
func (*G) VersionStr ¶
type IntIterType ¶
type IntIterType struct {
BasicIterType
}
type IterType ¶
type IterType struct {
BasicIterType
}
type Pos ¶
type Pos struct {
Row, Col int
// contains filtered or unexported fields
}
var (
INIT_POS, NIL_POS Pos
)
type QuoteType ¶
type QuoteType struct {
BasicWrapType
}
type RecallType ¶
type RecallType struct {
BasicType
}
type SetterType ¶
type SetterType struct { BasicType // contains filtered or unexported fields }
type SplatType ¶
type SplatType struct {
BasicWrapType
}
type SpliceType ¶
type SpliceType struct {
BasicWrapType
}
func (*SpliceType) Unwrap ¶
func (_ *SpliceType) Unwrap(val Val) Val
type Sym ¶
type Sym struct {
// contains filtered or unexported fields
}
type Type ¶
type Type interface { fmt.Stringer Val Init(*G, *Sym, []Type) E ArgList(*G, Val) (*ArgList, E) Bool(*G, Val) (bool, E) Call(*G, *Task, *Env, Val, Vec, *Env) (Val, E) Clone(*G, Val) (Val, E) Drop(*G, Val, Int) (Val, E) Dump(*G, Val, *bufio.Writer) E Dup(*G, Val) (Val, E) EachParent(func(Type)) Env() *Env Eq(*G, Val, Val) (bool, E) Eval(*G, *Task, *Env, Val, *Env) (Val, E) Expand(*G, *Task, *Env, Val, Int) (Val, E) Extenv(*G, *Env, *Env, Val, bool) E Id() *Sym Index(*G, Val, Vec) (Val, E) Is(*G, Val, Val) bool Isa(Type) Type Iter(*G, Val) (Val, E) Len(*G, Val) (Int, E) Pop(*G, Val) (Val, Val, E) Print(*G, Val, *bufio.Writer) E Push(*G, Val, ...Val) (Val, E) Quote(*G, *Task, *Env, Val, *Env) (Val, E) SetIndex(*G, *Task, *Env, Val, Vec, Setter) (Val, Val, E) Splat(*G, Val, Vec) (Vec, E) }
type VecIterType ¶
type VecIterType struct {
BasicIterType
}
type VecType ¶
type VecType struct {
SeqType
}
Source Files ¶
- abc.go
- arg.go
- bin.go
- bool.go
- byte.go
- catch.go
- chan.go
- char.go
- e.go
- env.go
- false.go
- float.go
- fun.go
- g.go
- int.go
- io.go
- iter.go
- mac.go
- math.go
- nanos.go
- nil.go
- num.go
- pos.go
- prim.go
- quote.go
- read.go
- recall.go
- restart.go
- seq.go
- setter.go
- splat.go
- splice.go
- str.go
- sym.go
- tag.go
- task.go
- time.go
- time_lib.go
- true.go
- try.go
- type.go
- val.go
- vec.go
- wrap.go
- writer.go
Click to show internal directories.
Click to hide internal directories.