Documentation
¶
Index ¶
- func ParseArgs(args Arguments, vals []*Value, scope scope.Scope[string, *Value])
- type Argument
- type Arguments
- type Array
- type Bool
- type Error
- type ExpressionResult
- type InnerValue
- type Method
- type Null
- type Number
- type Object
- type String
- type Subroutine
- type SubroutineResult
- type Type
- type Value
- func (v *Value) Clone() *Value
- func (v *Value) Equals(value *Value) bool
- func (v *Value) InnerValue() InnerValue
- func (v *Value) IsNull() bool
- func (v *Value) Normalize() *Value
- func (v *Value) Set(i InnerValue)
- func (v *Value) String() string
- func (v *Value) Type() Type
- func (v *Value) Uuid() uuid.UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExpressionResult ¶
type ExpressionResult struct {
Signal signal.Signal
SignalVal *Value
Trace stacktrace.StackTrace
}
func (ExpressionResult) Error ¶
func (s ExpressionResult) Error() string
func (ExpressionResult) IntoSubroutineResult ¶
func (s ExpressionResult) IntoSubroutineResult() (SubroutineResult, bool)
func (ExpressionResult) IntoSubroutineResultStrict ¶
func (s ExpressionResult) IntoSubroutineResultStrict(pos pos.Pos) SubroutineResult
func (ExpressionResult) String ¶
func (s ExpressionResult) String() string
type InnerValue ¶
type Method ¶
type Method struct {
Subroutine *Subroutine
It *Value
}
type Subroutine ¶
type Subroutine struct {
Name string
Arguments Arguments
Scope scope.Scope[string, *Value]
Prototype *Value
BuiltIn func(*vm.VM[*Value], scope.Scope[string, *Value]) SubroutineResult
Code ast.BlockExpression
}
func (*Subroutine) Equals ¶
func (s *Subroutine) Equals(value *Value) bool
func (*Subroutine) Type ¶
func (*Subroutine) Type() Type
type SubroutineResult ¶
type SubroutineResult struct {
Signal signal.SubroutineSignal
SignalVal *Value
Trace stacktrace.StackTrace
}
func (SubroutineResult) AsExpressionResult ¶
func (s SubroutineResult) AsExpressionResult() ExpressionResult
func (SubroutineResult) Error ¶
func (s SubroutineResult) Error() string
func (SubroutineResult) String ¶
func (s SubroutineResult) String() string
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func New ¶ added in v0.1.4
func New(i InnerValue) *Value
func (*Value) InnerValue ¶ added in v0.1.4
func (v *Value) InnerValue() InnerValue
func (*Value) Set ¶ added in v0.1.4
func (v *Value) Set(i InnerValue)
Click to show internal directories.
Click to hide internal directories.