Documentation
¶
Index ¶
- type Assigner
- type Bool
- type Func
- type FuncBuiltin
- func (v *FuncBuiltin) Binary(t token.Token, y Value) (Value, error)
- func (v *FuncBuiltin) Call(v0 Value) (rr Value, err0 error)
- func (v *FuncBuiltin) Point() Value
- func (v *FuncBuiltin) String() string
- func (v *FuncBuiltin) UnaryPre(t token.Token) (Value, error)
- func (v *FuncBuiltin) UnarySuf(t token.Token) (Value, error)
- type Map
- func (m Map) Binary(t token.Token, y Value) (Value, error)
- func (m Map) Child() Assigner
- func (m Map) Get(k Value) (Value, bool)
- func (m Map) Point() Value
- func (m Map) Set(k Value, v Value)
- func (m Map) SetLocal(k Value, v Value)
- func (m Map) String() string
- func (m Map) UnaryPre(t token.Token) (Value, error)
- func (m Map) UnarySuf(t token.Token) (Value, error)
- type Number
- type Scope
- type String
- type Tuple
- type Value
- type Var
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FuncBuiltin ¶
func NewFuncBuiltin ¶
func NewFuncBuiltin(body interface{}) *FuncBuiltin
func (*FuncBuiltin) Point ¶
func (v *FuncBuiltin) Point() Value
func (*FuncBuiltin) String ¶
func (v *FuncBuiltin) String() string
type Number ¶
type Number interface { Value Int() numberInt Float() numberFloat BigInt() numberBigInt BigFloat() numberBigFloat }
func ParseNumber ¶
type Value ¶
type Value interface { fmt.Stringer Binary(t token.Token, y Value) (Value, error) UnaryPre(t token.Token) (Value, error) UnarySuf(t token.Token) (Value, error) Point() Value }
var Nil Value = _Nil{}
Click to show internal directories.
Click to hide internal directories.