Documentation ¶
Index ¶
- Variables
- type Builtin
- func (Builtin) Add(vars ...Value) (Value, error)
- func (Builtin) Car(vars ...Value) (Value, error)
- func (Builtin) Cdr(vars ...Value) (Value, error)
- func (Builtin) Cons(vars ...Value) (Value, error)
- func (Builtin) Display(vars ...Value) (Value, error)
- func (Builtin) Eq(vars ...Value) (Value, error)
- func (Builtin) Gt(vars ...Value) (Value, error)
- func (Builtin) Gte(vars ...Value) (Value, error)
- func (Builtin) Lt(vars ...Value) (Value, error)
- func (Builtin) Lte(vars ...Value) (Value, error)
- func (Builtin) Mul(vars ...Value) (Value, error)
- func (Builtin) Sub(vars ...Value) (Value, error)
- type Cons
- func (c Cons) Eval(scope ScopedVars) (val Value, err error)
- func (cons Cons) Execute(scope ScopedVars) (Value, error)
- func (c Cons) Len() int
- func (c Cons) List() bool
- func (c Cons) Map(f func(v Value) (Value, error)) ([]Value, error)
- func (c Cons) String() string
- func (c Cons) Stringify() []string
- func (c Cons) Vector() Vector
- type Env
- type Map
- type Pattern
- type Proc
- type Scope
- type ScopedVars
- type Token
- type Tokens
- type Value
- type Vector
Constants ¶
This section is empty.
Variables ¶
View Source
var False = Value{symbolValue, "false"}
View Source
var Nil = Value{nilValue, nil}
View Source
var True = Value{symbolValue, "true"}
Functions ¶
This section is empty.
Types ¶
type ScopedVars ¶
type Tokens ¶
type Tokens []*Token
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func EvalString ¶
func EvalString(line string, scope ScopedVars) (Value, error)
func NumberValue ¶
func StringValue ¶
Click to show internal directories.
Click to hide internal directories.