Documentation ¶
Overview ¶
Pattern calls, argument handling, and related helpers.
Index ¶
- Variables
- func CustomEncoder(enc *encode.Encoder, op typeinfo.Instance) (ret any, err error)
- func ExpandArgs(run rt.Runtime, args []Arg) (retKeys []string, retVals []rt.Value, err error)
- func GetAffinity(a rt.Assignment) (ret affine.Affinity)
- func Literal(v literal.LiteralValue) (ret rt.Assignment)
- type ActivePattern
- type ActivePattern_Slice
- type ActiveScene
- type ActiveScene_Slice
- type Arg
- type Arg_Slice
- type CallPattern
- func (op *CallPattern) Execute(run rt.Runtime) error
- func (op *CallPattern) GetBool(run rt.Runtime) (rt.Value, error)
- func (op *CallPattern) GetMarkup(ensure bool) map[string]any
- func (op *CallPattern) GetNum(run rt.Runtime) (rt.Value, error)
- func (op *CallPattern) GetNumList(run rt.Runtime) (rt.Value, error)
- func (op *CallPattern) GetRecord(run rt.Runtime) (rt.Value, error)
- func (op *CallPattern) GetRecordList(run rt.Runtime) (rt.Value, error)
- func (op *CallPattern) GetText(run rt.Runtime) (rt.Value, error)
- func (op *CallPattern) GetTextList(run rt.Runtime) (rt.Value, error)
- func (*CallPattern) TypeInfo() typeinfo.T
- type CallPattern_Slice
- type CallTrigger
- type CallTrigger_Slice
- type FromAddress
- type FromAddress_Slice
- type FromBool
- type FromBool_Slice
- type FromExe
- type FromExe_Slice
- type FromNum
- type FromNumList
- type FromNumList_Slice
- type FromNum_Slice
- type FromRecord
- type FromRecordList
- type FromRecordList_Slice
- type FromRecord_Slice
- type FromText
- type FromTextList
- type FromTextList_Slice
- type FromText_Slice
- type Trigger
- type TriggerCycle
- type TriggerCycle_Slice
- type TriggerOnce
- type TriggerOnce_Slice
- type TriggerSwitch
- type TriggerSwitch_Slice
- type Trigger_Slot
- type Trigger_Slots
Constants ¶
This section is empty.
Variables ¶
var Z_Types = typeinfo.TypeSet{ Name: "call", Comment: []string{ "Pattern calls, argument handling, and related helpers.", }, Slot: z_slot_list, Flow: z_flow_list, Signatures: z_signatures, }
package listing of type data
var Zt_ActivePattern typeinfo.Flow
active_pattern, a type of flow.
var Zt_ActiveScene typeinfo.Flow
active_scene, a type of flow.
var Zt_Arg typeinfo.Flow
arg, a type of flow.
var Zt_CallPattern typeinfo.Flow
call_pattern, a type of flow.
var Zt_CallTrigger typeinfo.Flow
call_trigger, a type of flow.
var Zt_FromAddress typeinfo.Flow
from_address, a type of flow.
var Zt_FromBool typeinfo.Flow
from_bool, a type of flow.
var Zt_FromExe typeinfo.Flow
from_exe, a type of flow.
var Zt_FromNum typeinfo.Flow
from_num, a type of flow.
var Zt_FromNumList typeinfo.Flow
from_num_list, a type of flow.
var Zt_FromRecord typeinfo.Flow
from_record, a type of flow.
var Zt_FromRecordList typeinfo.Flow
from_record_list, a type of flow.
var Zt_FromText typeinfo.Flow
from_text, a type of flow.
var Zt_FromTextList typeinfo.Flow
from_text_list, a type of flow.
var Zt_Trigger = typeinfo.Slot{ Name: "trigger", Markup: map[string]any{ "comment": "Helper for counting values.", "internal": true, }, }
trigger, a type of slot.
var Zt_TriggerCycle typeinfo.Flow
trigger_cycle, a type of flow.
var Zt_TriggerOnce typeinfo.Flow
trigger_once, a type of flow.
var Zt_TriggerSwitch typeinfo.Flow
trigger_switch, a type of flow.
Functions ¶
func CustomEncoder ¶
func ExpandArgs ¶
func GetAffinity ¶
func GetAffinity(a rt.Assignment) (ret affine.Affinity)
func Literal ¶
func Literal(v literal.LiteralValue) (ret rt.Assignment)
turn a literal into an assignment ( whats's the right package for this function? )
Types ¶
type ActivePattern ¶
Determine whether a pattern is running.
The [rtti.num_eval] version returns the distance to the pattern.
func (*ActivePattern) GetMarkup ¶
func (op *ActivePattern) GetMarkup(ensure bool) map[string]any
Implements typeinfo.Markup
func (*ActivePattern) TypeInfo ¶
func (*ActivePattern) TypeInfo() typeinfo.T
Implements typeinfo.Instance
type ActivePattern_Slice ¶
type ActivePattern_Slice []ActivePattern
Holds a slice of type ActivePattern.
func (*ActivePattern_Slice) Repeats ¶
func (op *ActivePattern_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of ActivePattern.
func (*ActivePattern_Slice) TypeInfo ¶
func (*ActivePattern_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of ActivePattern.
type ActiveScene ¶
Determine whether a scene (aka domain) is active.
func (*ActiveScene) GetMarkup ¶
func (op *ActiveScene) GetMarkup(ensure bool) map[string]any
Implements typeinfo.Markup
func (*ActiveScene) TypeInfo ¶
func (*ActiveScene) TypeInfo() typeinfo.T
Implements typeinfo.Instance
type ActiveScene_Slice ¶
type ActiveScene_Slice []ActiveScene
Holds a slice of type ActiveScene.
func (*ActiveScene_Slice) Repeats ¶
func (op *ActiveScene_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of ActiveScene.
func (*ActiveScene_Slice) TypeInfo ¶
func (*ActiveScene_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of ActiveScene.
type Arg ¶
type Arg struct { Name string Value rtti.Assignment Markup map[string]any }
Pass a named value to a parameterized call.
func MakeArgs ¶
func MakeArgs(as ...rt.Assignment) (ret []Arg)
turn a series of assignments ( FromX commands ) into a slice of arguments.
func (*Arg) GetMarkup ¶
Implements typeinfo.Markup
type Arg_Slice ¶
type Arg_Slice []Arg
Holds a slice of type Arg.
func (*Arg_Slice) Repeats ¶
Implements typeinfo.Repeats for a slice of Arg.
type CallPattern ¶
Run a pattern, returning its result (if any). Tell files support calling patterns directly, so this is only needed when using the blockly editor.
func (*CallPattern) GetMarkup ¶
func (op *CallPattern) GetMarkup(ensure bool) map[string]any
Implements typeinfo.Markup
func (*CallPattern) GetNumList ¶
func (*CallPattern) GetRecordList ¶
func (*CallPattern) GetTextList ¶
func (*CallPattern) TypeInfo ¶
func (*CallPattern) TypeInfo() typeinfo.T
Implements typeinfo.Instance
type CallPattern_Slice ¶
type CallPattern_Slice []CallPattern
Holds a slice of type CallPattern.
func (*CallPattern_Slice) Repeats ¶
func (op *CallPattern_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of CallPattern.
func (*CallPattern_Slice) TypeInfo ¶
func (*CallPattern_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of CallPattern.
type CallTrigger ¶
Runtime version of count_of. A guard which returns true based on a counter.
func (*CallTrigger) GetMarkup ¶
func (op *CallTrigger) GetMarkup(ensure bool) map[string]any
Implements typeinfo.Markup
func (*CallTrigger) TypeInfo ¶
func (*CallTrigger) TypeInfo() typeinfo.T
Implements typeinfo.Instance
type CallTrigger_Slice ¶
type CallTrigger_Slice []CallTrigger
Holds a slice of type CallTrigger.
func (*CallTrigger_Slice) Repeats ¶
func (op *CallTrigger_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of CallTrigger.
func (*CallTrigger_Slice) TypeInfo ¶
func (*CallTrigger_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of CallTrigger.
type FromAddress ¶
Provide a stored value for an assignment.
func (*FromAddress) GetAssignedValue ¶
func (*FromAddress) GetMarkup ¶
func (op *FromAddress) GetMarkup(ensure bool) map[string]any
Implements typeinfo.Markup
func (*FromAddress) TypeInfo ¶
func (*FromAddress) TypeInfo() typeinfo.T
Implements typeinfo.Instance
type FromAddress_Slice ¶
type FromAddress_Slice []FromAddress
Holds a slice of type FromAddress.
func (*FromAddress_Slice) Repeats ¶
func (op *FromAddress_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of FromAddress.
func (*FromAddress_Slice) TypeInfo ¶
func (*FromAddress_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of FromAddress.
type FromBool ¶
Provide a boolean value for an assignment.
func (*FromBool) GetAssignedValue ¶
func (*FromBool) GetMarkup ¶
Implements typeinfo.Markup
type FromBool_Slice ¶
type FromBool_Slice []FromBool
Holds a slice of type FromBool.
func (*FromBool_Slice) Repeats ¶
func (op *FromBool_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of FromBool.
func (*FromBool_Slice) TypeInfo ¶
func (*FromBool_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of FromBool.
type FromExe ¶
Provide one or more execute commands for an assignment. Used internally for jess rules.
func (*FromExe) GetAssignedValue ¶
func (*FromExe) GetMarkup ¶
Implements typeinfo.Markup
type FromExe_Slice ¶
type FromExe_Slice []FromExe
Holds a slice of type FromExe.
func (*FromExe_Slice) Repeats ¶
func (op *FromExe_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of FromExe.
func (*FromExe_Slice) TypeInfo ¶
func (*FromExe_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of FromExe.
type FromNum ¶
Provide a number for an assignment.
func (*FromNum) GetAssignedValue ¶
func (*FromNum) GetMarkup ¶
Implements typeinfo.Markup
type FromNumList ¶
type FromNumList struct { Value rtti.NumListEval Markup map[string]any }
Provide a list of numbers for an assignment.
func (*FromNumList) GetAssignedValue ¶
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 FromNumList.
func (*FromNumList_Slice) Repeats ¶
func (op *FromNumList_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of FromNumList.
func (*FromNumList_Slice) TypeInfo ¶
func (*FromNumList_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of FromNumList.
type FromNum_Slice ¶
type FromNum_Slice []FromNum
Holds a slice of type FromNum.
func (*FromNum_Slice) Repeats ¶
func (op *FromNum_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of FromNum.
func (*FromNum_Slice) TypeInfo ¶
func (*FromNum_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of FromNum.
type FromRecord ¶
type FromRecord struct { Value rtti.RecordEval Markup map[string]any }
Provide a record for an assignment.
func (*FromRecord) GetAssignedValue ¶
func (*FromRecord) GetMarkup ¶
func (op *FromRecord) GetMarkup(ensure bool) map[string]any
Implements typeinfo.Markup
type FromRecordList ¶
type FromRecordList struct { Value rtti.RecordListEval Markup map[string]any }
Provide a list of records for an assignment.
func (*FromRecordList) GetAssignedValue ¶
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 FromRecordList.
func (*FromRecordList_Slice) Repeats ¶
func (op *FromRecordList_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of FromRecordList.
func (*FromRecordList_Slice) TypeInfo ¶
func (*FromRecordList_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of FromRecordList.
type FromRecord_Slice ¶
type FromRecord_Slice []FromRecord
Holds a slice of type FromRecord.
func (*FromRecord_Slice) Repeats ¶
func (op *FromRecord_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of FromRecord.
func (*FromRecord_Slice) TypeInfo ¶
func (*FromRecord_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of FromRecord.
type FromText ¶
Provide some text for an assignment.
func (*FromText) GetAssignedValue ¶
func (*FromText) GetMarkup ¶
Implements typeinfo.Markup
type FromTextList ¶
type FromTextList struct { Value rtti.TextListEval Markup map[string]any }
Provide a list of text values for an assignment.
func (*FromTextList) GetAssignedValue ¶
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 FromTextList.
func (*FromTextList_Slice) Repeats ¶
func (op *FromTextList_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of FromTextList.
func (*FromTextList_Slice) TypeInfo ¶
func (*FromTextList_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of FromTextList.
type FromText_Slice ¶
type FromText_Slice []FromText
Holds a slice of type FromText.
func (*FromText_Slice) Repeats ¶
func (op *FromText_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of FromText.
func (*FromText_Slice) TypeInfo ¶
func (*FromText_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of FromText.
type TriggerCycle ¶
call_trigger
func (*TriggerCycle) GetMarkup ¶
func (op *TriggerCycle) GetMarkup(ensure bool) map[string]any
Implements typeinfo.Markup
func (*TriggerCycle) Trigger ¶
func (op *TriggerCycle) Trigger() Trigger
func (*TriggerCycle) TypeInfo ¶
func (*TriggerCycle) TypeInfo() typeinfo.T
Implements typeinfo.Instance
type TriggerCycle_Slice ¶
type TriggerCycle_Slice []TriggerCycle
Holds a slice of type TriggerCycle.
func (*TriggerCycle_Slice) Repeats ¶
func (op *TriggerCycle_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of TriggerCycle.
func (*TriggerCycle_Slice) TypeInfo ¶
func (*TriggerCycle_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of TriggerCycle.
type TriggerOnce ¶
call_trigger
func (*TriggerOnce) GetMarkup ¶
func (op *TriggerOnce) GetMarkup(ensure bool) map[string]any
Implements typeinfo.Markup
func (*TriggerOnce) Trigger ¶
func (op *TriggerOnce) Trigger() Trigger
func (*TriggerOnce) TypeInfo ¶
func (*TriggerOnce) TypeInfo() typeinfo.T
Implements typeinfo.Instance
type TriggerOnce_Slice ¶
type TriggerOnce_Slice []TriggerOnce
Holds a slice of type TriggerOnce.
func (*TriggerOnce_Slice) Repeats ¶
func (op *TriggerOnce_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of TriggerOnce.
func (*TriggerOnce_Slice) TypeInfo ¶
func (*TriggerOnce_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of TriggerOnce.
type TriggerSwitch ¶
call_trigger
func (*TriggerSwitch) GetMarkup ¶
func (op *TriggerSwitch) GetMarkup(ensure bool) map[string]any
Implements typeinfo.Markup
func (*TriggerSwitch) Trigger ¶
func (op *TriggerSwitch) Trigger() Trigger
func (*TriggerSwitch) TypeInfo ¶
func (*TriggerSwitch) TypeInfo() typeinfo.T
Implements typeinfo.Instance
type TriggerSwitch_Slice ¶
type TriggerSwitch_Slice []TriggerSwitch
Holds a slice of type TriggerSwitch.
func (*TriggerSwitch_Slice) Repeats ¶
func (op *TriggerSwitch_Slice) Repeats() bool
Implements typeinfo.Repeats for a slice of TriggerSwitch.
func (*TriggerSwitch_Slice) TypeInfo ¶
func (*TriggerSwitch_Slice) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of TriggerSwitch.
type Trigger_Slot ¶
type Trigger_Slot struct{ Value Trigger }
Holds a single slot.
func (*Trigger_Slot) TypeInfo ¶
func (*Trigger_Slot) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a single slot.
type Trigger_Slots ¶
type Trigger_Slots []Trigger
Holds a slice of slots.
func (*Trigger_Slots) Repeats ¶
func (op *Trigger_Slots) Repeats() bool
Implements typeinfo.Repeats for a slice of slots.
func (*Trigger_Slots) TypeInfo ¶
func (*Trigger_Slots) TypeInfo() typeinfo.T
Implements typeinfo.Instance for a slice of slots.