assign

package
v0.24.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

Code generated by Tapestry; edit at your own risk.

Index

Constants

This section is empty.

Variables

View Source
var Z_Types = typeinfo.TypeSet{
	Name:       "assign",
	Slot:       z_slot_list,
	Flow:       z_flow_list,
	Signatures: z_signatures,
}

package listing of type data

View Source
var Zt_Address = typeinfo.Slot{
	Name: "address",
	Markup: map[string]any{
		"comment": []interface{}{"Identifies some particular object field, local variable, or pattern argument.", "Addresses can be read from or written to.", "That is to say, addresses implement all of the rt evals,", "and all commands which read from objects or variables should use the methods the address interface provides."},
	},
}

address, a type of slot.

arg, a type of flow.

View Source
var Zt_AtField typeinfo.Flow

at_field, a type of flow.

View Source
var Zt_AtIndex typeinfo.Flow

at_index, a type of flow.

View Source
var Zt_CallPattern typeinfo.Flow

call_pattern, a type of flow.

View Source
var Zt_CopyValue typeinfo.Flow

copy_value, a type of flow.

View Source
var Zt_Dot = typeinfo.Slot{
	Name: "dot",
	Markup: map[string]any{
		"blockly-color": "MATH_HUE",
		"comment":       "Picks values from types containing other values.",
	},
}

dot, a type of slot.

View Source
var Zt_FromBool typeinfo.Flow

from_bool, a type of flow.

View Source
var Zt_FromExe typeinfo.Flow

from_exe, a type of flow.

View Source
var Zt_FromNumList typeinfo.Flow

from_num_list, a type of flow.

View Source
var Zt_FromNumber typeinfo.Flow

from_number, a type of flow.

View Source
var Zt_FromRecord typeinfo.Flow

from_record, a type of flow.

View Source
var Zt_FromRecordList typeinfo.Flow

from_record_list, a type of flow.

View Source
var Zt_FromText typeinfo.Flow

from_text, a type of flow.

View Source
var Zt_FromTextList typeinfo.Flow

from_text_list, a type of flow.

View Source
var Zt_ObjectRef typeinfo.Flow

object_ref, a type of flow.

View Source
var Zt_SetTrait typeinfo.Flow

set_trait, a type of flow.

View Source
var Zt_SetValue typeinfo.Flow

set_value, a type of flow.

View Source
var Zt_VariableRef typeinfo.Flow

variable_ref, a type of flow.

Functions

func CmdError

func CmdError(op typeinfo.Instance, err error) error

func CmdErrorCtx

func CmdErrorCtx(op typeinfo.Instance, ctx string, err error) error

func CustomEncoder

func CustomEncoder(enc *encode.Encoder, op typeinfo.Instance) (ret any, err error)

func ExpandArgs

func ExpandArgs(run rt.Runtime, args []Arg) (retKeys []string, retVals []rt.Value, err error)

func GetAffinity

func GetAffinity(a rt.Assignment) (ret affine.Affinity)

func GetReference

func GetReference(run rt.Runtime, op Address) (ret dot.Endpoint, err error)

check that op exists and then call GetReference on it.

func Literal

func Literal(v literal.LiteralValue) (ret rt.Assignment)

turn a literal into an assignment ( whats's the right package for this function? )

func ResolveName

func ResolveName(run rt.Runtime, name string, path dot.Path) (ret dot.Endpoint, err error)

note: currently templates can't analyze the context they're being called in, so: if the command is being used to get an object value and no variable can be found in the current context of the requested name, see if the requested name is an object instead.

func ResolvePath

func ResolvePath(run rt.Runtime, dots []Dot) (ret dot.Path, err error)

change num and text evals into concrete index and member names ( determining the values of the path elements in advance aids debugging. )

Types

type Address

type Address interface {
	GetReference(rt.Runtime) (dot.Endpoint, error)
}

uniform access to objects and variables implemented by various Tapestry commands.

type Address_Slot

type Address_Slot struct{ Value Address }

holds a single slot.

func (*Address_Slot) TypeInfo

func (*Address_Slot) TypeInfo() typeinfo.T

implements typeinfo.Instance for a single slot.

type Address_Slots

type Address_Slots []Address

holds a slice of slots.

func (*Address_Slots) Repeats

func (op *Address_Slots) Repeats() bool

implements typeinfo.Repeats

func (*Address_Slots) TypeInfo

func (*Address_Slots) TypeInfo() typeinfo.T

implements typeinfo.Instance for a series of slots.

type Arg

type Arg struct {
	Name   string
	Value  rtti.Assignment
	Markup map[string]any
}

Runtime version of argument.

func (*Arg) GetMarkup

func (op *Arg) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*Arg) TypeInfo

func (*Arg) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Arg_Slice

type Arg_Slice []Arg

holds a slice of type arg

func (*Arg_Slice) Repeats

func (op *Arg_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Arg_Slice) TypeInfo

func (*Arg_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type AtField

type AtField struct {
	Field  rtti.TextEval
	Markup map[string]any
}

func (*AtField) GetMarkup

func (op *AtField) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*AtField) Resolve

func (op *AtField) Resolve(run rt.Runtime) (ret dot.Dotted, err error)

return a dot.Field

func (*AtField) TypeInfo

func (*AtField) TypeInfo() typeinfo.T

implements typeinfo.Instance

type AtField_Slice

type AtField_Slice []AtField

holds a slice of type at_field

func (*AtField_Slice) Repeats

func (op *AtField_Slice) Repeats() bool

implements typeinfo.Repeats

func (*AtField_Slice) TypeInfo

func (*AtField_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type AtIndex

type AtIndex struct {
	Index  rtti.NumberEval
	Markup map[string]any
}

func (*AtIndex) GetMarkup

func (op *AtIndex) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*AtIndex) Resolve

func (op *AtIndex) Resolve(run rt.Runtime) (ret dot.Dotted, err error)

return a dot.Index

func (*AtIndex) TypeInfo

func (*AtIndex) TypeInfo() typeinfo.T

implements typeinfo.Instance

type AtIndex_Slice

type AtIndex_Slice []AtIndex

holds a slice of type at_index

func (*AtIndex_Slice) Repeats

func (op *AtIndex_Slice) Repeats() bool

implements typeinfo.Repeats

func (*AtIndex_Slice) TypeInfo

func (*AtIndex_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type CallPattern

type CallPattern struct {
	PatternName string
	Arguments   []Arg
	Markup      map[string]any
}

Executes a pattern, and potentially returns a value.

func (*CallPattern) Execute

func (op *CallPattern) Execute(run rt.Runtime) error

func (*CallPattern) GetBool

func (op *CallPattern) GetBool(run rt.Runtime) (rt.Value, error)

func (*CallPattern) GetMarkup

func (op *CallPattern) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*CallPattern) GetNumList

func (op *CallPattern) GetNumList(run rt.Runtime) (rt.Value, error)

func (*CallPattern) GetNumber

func (op *CallPattern) GetNumber(run rt.Runtime) (rt.Value, error)

func (*CallPattern) GetRecord

func (op *CallPattern) GetRecord(run rt.Runtime) (rt.Value, error)

func (*CallPattern) GetRecordList

func (op *CallPattern) GetRecordList(run rt.Runtime) (rt.Value, error)

func (*CallPattern) GetText

func (op *CallPattern) GetText(run rt.Runtime) (rt.Value, error)

func (*CallPattern) GetTextList

func (op *CallPattern) GetTextList(run rt.Runtime) (rt.Value, error)

func (*CallPattern) TypeInfo

func (*CallPattern) TypeInfo() typeinfo.T

implements typeinfo.Instance

type CallPattern_Slice

type CallPattern_Slice []CallPattern

holds a slice of type call_pattern

func (*CallPattern_Slice) Repeats

func (op *CallPattern_Slice) Repeats() bool

implements typeinfo.Repeats

func (*CallPattern_Slice) TypeInfo

func (*CallPattern_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type CommandError

type CommandError struct {
	Cmd typeinfo.Instance
	Ctx string
}

func (CommandError) Error

func (e CommandError) Error() string

type CopyValue

type CopyValue struct {
	Target Address
	Source Address
	Markup map[string]any
}

Copy from one stored value to another. Requires that the type of the two values match exactly

func (*CopyValue) Execute

func (op *CopyValue) Execute(run rt.Runtime) (err error)

func (*CopyValue) GetMarkup

func (op *CopyValue) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*CopyValue) TypeInfo

func (*CopyValue) TypeInfo() typeinfo.T

implements typeinfo.Instance

type CopyValue_Slice

type CopyValue_Slice []CopyValue

holds a slice of type copy_value

func (*CopyValue_Slice) Repeats

func (op *CopyValue_Slice) Repeats() bool

implements typeinfo.Repeats

func (*CopyValue_Slice) TypeInfo

func (*CopyValue_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Dot

type Dot interface {
	Resolve(rt.Runtime) (dot.Dotted, error)
}

Dot - access to a value inside another value. ex. in objects, lists, or records.

type Dot_Slot

type Dot_Slot struct{ Value Dot }

holds a single slot.

func (*Dot_Slot) TypeInfo

func (*Dot_Slot) TypeInfo() typeinfo.T

implements typeinfo.Instance for a single slot.

type Dot_Slots

type Dot_Slots []Dot

holds a slice of slots.

func (*Dot_Slots) Repeats

func (op *Dot_Slots) Repeats() bool

implements typeinfo.Repeats

func (*Dot_Slots) TypeInfo

func (*Dot_Slots) TypeInfo() typeinfo.T

implements typeinfo.Instance for a series of slots.

type FromBool

type FromBool struct {
	Value  rtti.BoolEval
	Markup map[string]any
}

Calculates a boolean value.

func (*FromBool) GetAssignedValue

func (op *FromBool) GetAssignedValue(run rt.Runtime) (ret rt.Value, err error)

func (*FromBool) GetMarkup

func (op *FromBool) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*FromBool) TypeInfo

func (*FromBool) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromBool_Slice

type FromBool_Slice []FromBool

holds a slice of type from_bool

func (*FromBool_Slice) Repeats

func (op *FromBool_Slice) Repeats() bool

implements typeinfo.Repeats

func (*FromBool_Slice) TypeInfo

func (*FromBool_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromExe

type FromExe struct {
	Exe    []rtti.Execute
	Markup map[string]any
}

Adapts an execute statement to an assignment. Used internally for package shuttle.

func (*FromExe) GetAssignedValue

func (op *FromExe) GetAssignedValue(run rt.Runtime) (ret rt.Value, err error)

func (*FromExe) GetMarkup

func (op *FromExe) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*FromExe) TypeInfo

func (*FromExe) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromExe_Slice

type FromExe_Slice []FromExe

holds a slice of type from_exe

func (*FromExe_Slice) Repeats

func (op *FromExe_Slice) Repeats() bool

implements typeinfo.Repeats

func (*FromExe_Slice) TypeInfo

func (*FromExe_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromNumList

type FromNumList struct {
	Value  rtti.NumListEval
	Markup map[string]any
}

Calculates a list of numbers.

func (*FromNumList) GetAssignedValue

func (op *FromNumList) GetAssignedValue(run rt.Runtime) (ret rt.Value, err error)

func (*FromNumList) GetMarkup

func (op *FromNumList) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*FromNumList) TypeInfo

func (*FromNumList) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromNumList_Slice

type FromNumList_Slice []FromNumList

holds a slice of type from_num_list

func (*FromNumList_Slice) Repeats

func (op *FromNumList_Slice) Repeats() bool

implements typeinfo.Repeats

func (*FromNumList_Slice) TypeInfo

func (*FromNumList_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromNumber

type FromNumber struct {
	Value  rtti.NumberEval
	Markup map[string]any
}

Calculates a number.

func (*FromNumber) GetAssignedValue

func (op *FromNumber) GetAssignedValue(run rt.Runtime) (ret rt.Value, err error)

func (*FromNumber) GetMarkup

func (op *FromNumber) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*FromNumber) TypeInfo

func (*FromNumber) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromNumber_Slice

type FromNumber_Slice []FromNumber

holds a slice of type from_number

func (*FromNumber_Slice) Repeats

func (op *FromNumber_Slice) Repeats() bool

implements typeinfo.Repeats

func (*FromNumber_Slice) TypeInfo

func (*FromNumber_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromRecord

type FromRecord struct {
	Value  rtti.RecordEval
	Markup map[string]any
}

Calculates a record.

func (*FromRecord) GetAssignedValue

func (op *FromRecord) GetAssignedValue(run rt.Runtime) (ret rt.Value, err error)

func (*FromRecord) GetMarkup

func (op *FromRecord) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*FromRecord) TypeInfo

func (*FromRecord) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromRecordList

type FromRecordList struct {
	Value  rtti.RecordListEval
	Markup map[string]any
}

Calculates a list of records.

func (*FromRecordList) GetAssignedValue

func (op *FromRecordList) GetAssignedValue(run rt.Runtime) (ret rt.Value, err error)

func (*FromRecordList) GetMarkup

func (op *FromRecordList) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*FromRecordList) TypeInfo

func (*FromRecordList) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromRecordList_Slice

type FromRecordList_Slice []FromRecordList

holds a slice of type from_record_list

func (*FromRecordList_Slice) Repeats

func (op *FromRecordList_Slice) Repeats() bool

implements typeinfo.Repeats

func (*FromRecordList_Slice) TypeInfo

func (*FromRecordList_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromRecord_Slice

type FromRecord_Slice []FromRecord

holds a slice of type from_record

func (*FromRecord_Slice) Repeats

func (op *FromRecord_Slice) Repeats() bool

implements typeinfo.Repeats

func (*FromRecord_Slice) TypeInfo

func (*FromRecord_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromText

type FromText struct {
	Value  rtti.TextEval
	Markup map[string]any
}

Calculates a text string.

func (*FromText) GetAssignedValue

func (op *FromText) GetAssignedValue(run rt.Runtime) (ret rt.Value, err error)

func (*FromText) GetMarkup

func (op *FromText) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*FromText) TypeInfo

func (*FromText) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromTextList

type FromTextList struct {
	Value  rtti.TextListEval
	Markup map[string]any
}

Calculates a list of text strings.

func (*FromTextList) GetAssignedValue

func (op *FromTextList) GetAssignedValue(run rt.Runtime) (ret rt.Value, err error)

func (*FromTextList) GetMarkup

func (op *FromTextList) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*FromTextList) TypeInfo

func (*FromTextList) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromTextList_Slice

type FromTextList_Slice []FromTextList

holds a slice of type from_text_list

func (*FromTextList_Slice) Repeats

func (op *FromTextList_Slice) Repeats() bool

implements typeinfo.Repeats

func (*FromTextList_Slice) TypeInfo

func (*FromTextList_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FromText_Slice

type FromText_Slice []FromText

holds a slice of type from_text

func (*FromText_Slice) Repeats

func (op *FromText_Slice) Repeats() bool

implements typeinfo.Repeats

func (*FromText_Slice) TypeInfo

func (*FromText_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type ObjectRef

type ObjectRef struct {
	Name   rtti.TextEval
	Field  rtti.TextEval
	Dot    []Dot
	Markup map[string]any
}

func (*ObjectRef) GetBool

func (op *ObjectRef) GetBool(run rt.Runtime) (ret rt.Value, err error)

func (*ObjectRef) GetMarkup

func (op *ObjectRef) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*ObjectRef) GetNumList

func (op *ObjectRef) GetNumList(run rt.Runtime) (rt.Value, error)

func (*ObjectRef) GetNumber

func (op *ObjectRef) GetNumber(run rt.Runtime) (rt.Value, error)

func (*ObjectRef) GetRecord

func (op *ObjectRef) GetRecord(run rt.Runtime) (rt.Value, error)

func (*ObjectRef) GetRecordList

func (op *ObjectRef) GetRecordList(run rt.Runtime) (rt.Value, error)

func (*ObjectRef) GetReference

func (op *ObjectRef) GetReference(run rt.Runtime) (ret dot.Endpoint, err error)

func (*ObjectRef) GetText

func (op *ObjectRef) GetText(run rt.Runtime) (rt.Value, error)

func (*ObjectRef) GetTextList

func (op *ObjectRef) GetTextList(run rt.Runtime) (rt.Value, error)

func (*ObjectRef) TypeInfo

func (*ObjectRef) TypeInfo() typeinfo.T

implements typeinfo.Instance

type ObjectRef_Slice

type ObjectRef_Slice []ObjectRef

holds a slice of type object_ref

func (*ObjectRef_Slice) Repeats

func (op *ObjectRef_Slice) Repeats() bool

implements typeinfo.Repeats

func (*ObjectRef_Slice) TypeInfo

func (*ObjectRef_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type SetTrait

type SetTrait struct {
	Target rtti.TextEval
	Trait  rtti.TextEval
	Markup map[string]any
}

Set the state of an object.

func (*SetTrait) Execute

func (op *SetTrait) Execute(run rt.Runtime) (err error)

func (*SetTrait) GetMarkup

func (op *SetTrait) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*SetTrait) TypeInfo

func (*SetTrait) TypeInfo() typeinfo.T

implements typeinfo.Instance

type SetTrait_Slice

type SetTrait_Slice []SetTrait

holds a slice of type set_trait

func (*SetTrait_Slice) Repeats

func (op *SetTrait_Slice) Repeats() bool

implements typeinfo.Repeats

func (*SetTrait_Slice) TypeInfo

func (*SetTrait_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type SetValue

type SetValue struct {
	Target Address
	Value  rtti.Assignment
	Markup map[string]any
}

Store a value into a variable or object.

func (*SetValue) Execute

func (op *SetValue) Execute(run rt.Runtime) (err error)

func (*SetValue) GetMarkup

func (op *SetValue) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*SetValue) TypeInfo

func (*SetValue) TypeInfo() typeinfo.T

implements typeinfo.Instance

type SetValue_Slice

type SetValue_Slice []SetValue

holds a slice of type set_value

func (*SetValue_Slice) Repeats

func (op *SetValue_Slice) Repeats() bool

implements typeinfo.Repeats

func (*SetValue_Slice) TypeInfo

func (*SetValue_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type VariableRef

type VariableRef struct {
	Name   rtti.TextEval
	Dot    []Dot
	Markup map[string]any
}

func (*VariableRef) GetBool

func (op *VariableRef) GetBool(run rt.Runtime) (ret rt.Value, err error)

func (*VariableRef) GetMarkup

func (op *VariableRef) GetMarkup(ensure bool) map[string]any

implements typeinfo.Markup

func (*VariableRef) GetNumList

func (op *VariableRef) GetNumList(run rt.Runtime) (ret rt.Value, err error)

func (*VariableRef) GetNumber

func (op *VariableRef) GetNumber(run rt.Runtime) (ret rt.Value, err error)

func (*VariableRef) GetRecord

func (op *VariableRef) GetRecord(run rt.Runtime) (ret rt.Value, err error)

func (*VariableRef) GetRecordList

func (op *VariableRef) GetRecordList(run rt.Runtime) (ret rt.Value, err error)

func (*VariableRef) GetReference

func (op *VariableRef) GetReference(run rt.Runtime) (ret dot.Endpoint, err error)

func (*VariableRef) GetText

func (op *VariableRef) GetText(run rt.Runtime) (ret rt.Value, err error)

func (*VariableRef) GetTextList

func (op *VariableRef) GetTextList(run rt.Runtime) (ret rt.Value, err error)

func (*VariableRef) TypeInfo

func (*VariableRef) TypeInfo() typeinfo.T

implements typeinfo.Instance

type VariableRef_Slice

type VariableRef_Slice []VariableRef

holds a slice of type variable_ref

func (*VariableRef_Slice) Repeats

func (op *VariableRef_Slice) Repeats() bool

implements typeinfo.Repeats

func (*VariableRef_Slice) TypeInfo

func (*VariableRef_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL