Documentation ¶
Overview ¶
Code generated by Tapestry; edit at your own risk.
Index ¶
- Variables
- func CustomDecoder(dec *decode.Decoder, slot *typeinfo.Slot, body any) (ret typeinfo.Instance, err error)
- func CustomEncoder(enc *encode.Encoder, op typeinfo.Instance) (ret any, err error)
- func MakeActivity(exe ...rt.Execute) []rt.Execute
- func MakeArgs(as ...rt.Assignment) (ret []assign.Arg)
- func MakeDot(path ...any) (ret []assign.Dot)
- func MakeRule(filter rt.BoolEval, exe ...rt.Execute) (ret rt.Rule)
- func N(variableName string) string
- func Object(name, field string, path ...any) *assign.ObjectRef
- func P(patternName string) string
- func Variable(name string, path ...any) *assign.VariableRef
- func W(plainText string) string
- type AbsValue
- type AbsValue_Slice
- type AddValue
- type AddValue_Slice
- type AllTrue
- type AllTrue_Slice
- type Always
- type Always_Slice
- type AnyTrue
- type AnyTrue_Slice
- type Blankline
- type Blankline_Slice
- type BracketText
- type BracketText_Slice
- type Brancher
- type Brancher_Slot
- type Brancher_Slots
- type Break
- type Break_Slice
- type BufferText
- type BufferText_Slice
- type CallCycle
- type CallCycle_Slice
- type CallShuffle
- type CallShuffle_Slice
- type CallTerminal
- type CallTerminal_Slice
- type CallTrigger
- type CallTrigger_Slice
- type Capitalize
- type Capitalize_Slice
- type ChooseBranch
- func (op *ChooseBranch) Branch(run rt.Runtime) (err error)
- func (op *ChooseBranch) Execute(run rt.Runtime) (err error)
- func (op *ChooseBranch) GetMarkup(ensure bool) map[string]any
- func (op *ChooseBranch) PickBranch(run rt.Runtime, pushes *int) (ret []rt.Execute, err error)
- func (*ChooseBranch) TypeInfo() typeinfo.T
- type ChooseBranch_Slice
- type ChooseNothingElse
- type ChooseNothingElse_Slice
- type ChooseNum
- type ChooseNum_Slice
- type ChooseText
- type ChooseText_Slice
- type CommaText
- type CommaText_Slice
- type CompareNum
- type CompareNum_Slice
- type CompareText
- type CompareText_Slice
- type CompareType
- type CompareValue
- type CompareValue_Slice
- type Comparison
- type Continue
- type Continue_Slice
- type Decrement
- type DecrementAspect
- type DecrementAspect_Slice
- type Decrement_Slice
- type DivideValue
- type DivideValue_Slice
- type DoInterrupt
- type During
- type During_Slice
- type FieldsOfKind
- type FieldsOfKind_Slice
- type HasDominion
- type HasDominion_Slice
- type IdOf
- type IdOf_Slice
- type Includes
- type Includes_Slice
- type Increment
- type IncrementAspect
- type IncrementAspect_Slice
- type Increment_Slice
- type IsEmpty
- type IsEmpty_Slice
- type IsExactKindOf
- type IsExactKindOf_Slice
- type IsKindOf
- type IsKindOf_Slice
- type Join
- type Join_Slice
- type KindOf
- type KindOf_Slice
- type KindsOf
- type KindsOf_Slice
- type MakeLowercase
- type MakeLowercase_Slice
- type MakeReversed
- type MakeReversed_Slice
- type MakeSentenceCase
- type MakeSentenceCase_Slice
- type MakeTitleCase
- type MakeTitleCase_Slice
- type MakeUppercase
- type MakeUppercase_Slice
- type MatchCache
- type Matches
- type Matches_Slice
- type MaxLoopError
- type ModValue
- type ModValue_Slice
- type MultiplyValue
- type MultiplyValue_Slice
- type NameOf
- type NameOf_Slice
- type Never
- type Never_Slice
- type Newline
- type Newline_Slice
- type Not
- type Not_Slice
- type ObjectExists
- type ObjectExists_Slice
- type ObjectTraits
- type ObjectTraits_Slice
- type Pluralize
- type Pluralize_Slice
- type PrintNum
- type PrintNumWord
- type PrintNumWord_Slice
- type PrintNum_Slice
- type PrintText
- type PrintText_Slice
- type Row
- type Row_Slice
- type Rows
- type Rows_Slice
- type Shuffler
- type Singularize
- type Singularize_Slice
- type SlashText
- type SlashText_Slice
- type Softline
- type Softline_Slice
- type SpanText
- type SpanText_Slice
- type SubtractValue
- type SubtractValue_Slice
- type Trigger
- type TriggerCycle
- type TriggerCycle_Slice
- type TriggerOnce
- type TriggerOnce_Slice
- type TriggerSwitch
- type TriggerSwitch_Slice
- type Trigger_Slot
- type Trigger_Slots
- type While
- type While_Slice
Examples ¶
Constants ¶
This section is empty.
Variables ¶
var ( B = literal.B F = literal.F I = literal.I T = literal.T Ts = literal.Ts CmdError = assign.CmdError // backwards compat CmdErrorCtx = assign.CmdErrorCtx // backwards compat )
var Z_Types = typeinfo.TypeSet{
Name: "core",
Slot: z_slot_list,
Flow: z_flow_list,
Str: z_str_list,
Signatures: z_signatures,
}
package listing of type data
var Zt_AbsValue typeinfo.Flow
abs_value, a type of flow.
var Zt_AddValue typeinfo.Flow
add_value, a type of flow.
var Zt_AllTrue typeinfo.Flow
all_true, a type of flow.
var Zt_Always typeinfo.Flow
always, a type of flow.
var Zt_AnyTrue typeinfo.Flow
any_true, a type of flow.
var Zt_Blankline typeinfo.Flow
blankline, a type of flow.
var Zt_BracketText typeinfo.Flow
bracket_text, a type of flow.
var Zt_Brancher = typeinfo.Slot{ Name: "brancher", Markup: map[string]any{ "comment": "Helper for choose action.", }, }
brancher, a type of slot.
var Zt_Break typeinfo.Flow
break, a type of flow.
var Zt_BufferText typeinfo.Flow
buffer_text, a type of flow.
var Zt_CallCycle typeinfo.Flow
call_cycle, a type of flow.
var Zt_CallShuffle typeinfo.Flow
call_shuffle, a type of flow.
var Zt_CallTerminal typeinfo.Flow
call_terminal, a type of flow.
var Zt_CallTrigger typeinfo.Flow
call_trigger, a type of flow.
var Zt_Capitalize typeinfo.Flow
capitalize, a type of flow.
var Zt_ChooseBranch typeinfo.Flow
choose_branch, a type of flow.
var Zt_ChooseNothingElse typeinfo.Flow
choose_nothing_else, a type of flow.
var Zt_ChooseNum typeinfo.Flow
choose_num, a type of flow.
var Zt_ChooseText typeinfo.Flow
choose_text, a type of flow.
var Zt_CommaText typeinfo.Flow
comma_text, a type of flow.
var Zt_CompareNum typeinfo.Flow
compare_num, a type of flow.
var Zt_CompareText typeinfo.Flow
compare_text, a type of flow.
var Zt_CompareValue typeinfo.Flow
compare_value, a type of flow.
var Zt_Comparison = typeinfo.Str{ Name: "comparison", Options: []string{ "equal_to", "other_than", "greater_than", "less_than", "at_least", "at_most", }, }
comparison, a type of str enum.
var Zt_Continue typeinfo.Flow
continue, a type of flow.
var Zt_Decrement typeinfo.Flow
decrement, a type of flow.
var Zt_DecrementAspect typeinfo.Flow
decrement_aspect, a type of flow.
var Zt_DivideValue typeinfo.Flow
divide_value, a type of flow.
var Zt_During typeinfo.Flow
during, a type of flow.
var Zt_FieldsOfKind typeinfo.Flow
fields_of_kind, a type of flow.
var Zt_HasDominion typeinfo.Flow
has_dominion, a type of flow.
var Zt_IdOf typeinfo.Flow
id_of, a type of flow.
var Zt_Includes typeinfo.Flow
includes, a type of flow.
var Zt_Increment typeinfo.Flow
increment, a type of flow.
var Zt_IncrementAspect typeinfo.Flow
increment_aspect, a type of flow.
var Zt_IsEmpty typeinfo.Flow
is_empty, a type of flow.
var Zt_IsExactKindOf typeinfo.Flow
is_exact_kind_of, a type of flow.
var Zt_IsKindOf typeinfo.Flow
is_kind_of, a type of flow.
var Zt_Join typeinfo.Flow
join, a type of flow.
var Zt_KindOf typeinfo.Flow
kind_of, a type of flow.
var Zt_KindsOf typeinfo.Flow
kinds_of, a type of flow.
var Zt_MakeLowercase typeinfo.Flow
make_lowercase, a type of flow.
var Zt_MakeReversed typeinfo.Flow
make_reversed, a type of flow.
var Zt_MakeSentenceCase typeinfo.Flow
make_sentence_case, a type of flow.
var Zt_MakeTitleCase typeinfo.Flow
make_title_case, a type of flow.
var Zt_MakeUppercase typeinfo.Flow
make_uppercase, a type of flow.
var Zt_Matches typeinfo.Flow
matches, a type of flow.
var Zt_ModValue typeinfo.Flow
mod_value, a type of flow.
var Zt_MultiplyValue typeinfo.Flow
multiply_value, a type of flow.
var Zt_NameOf typeinfo.Flow
name_of, a type of flow.
var Zt_Never typeinfo.Flow
never, a type of flow.
var Zt_Newline typeinfo.Flow
newline, a type of flow.
var Zt_Not typeinfo.Flow
not, a type of flow.
var Zt_ObjectExists typeinfo.Flow
object_exists, a type of flow.
var Zt_ObjectTraits typeinfo.Flow
object_traits, a type of flow.
var Zt_Pluralize typeinfo.Flow
pluralize, a type of flow.
var Zt_PrintNum typeinfo.Flow
print_num, a type of flow.
var Zt_PrintNumWord typeinfo.Flow
print_num_word, a type of flow.
var Zt_PrintText typeinfo.Flow
print_text, a type of flow.
var Zt_Row typeinfo.Flow
row, a type of flow.
var Zt_Rows typeinfo.Flow
rows, a type of flow.
var Zt_Singularize typeinfo.Flow
singularize, a type of flow.
var Zt_SlashText typeinfo.Flow
slash_text, a type of flow.
var Zt_Softline typeinfo.Flow
softline, a type of flow.
var Zt_SpanText typeinfo.Flow
span_text, a type of flow.
var Zt_SubtractValue typeinfo.Flow
subtract_value, a type of flow.
var Zt_Trigger = typeinfo.Slot{ Name: "trigger", Markup: map[string]any{ "comment": "Helper for counting values.", }, }
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.
var Zt_While typeinfo.Flow
while, a type of flow.
Functions ¶
func CustomDecoder ¶
func CustomEncoder ¶
fix: move some part of this into package assign? especially because the opposite is handled in... story?
func MakeActivity ¶
turn a series of statements into a slice of execute statements.
func MakeArgs ¶
func MakeArgs(as ...rt.Assignment) (ret []assign.Arg)
turn a series of assignments ( FromX commands ) into a slice of arguments.
Types ¶
type AbsValue ¶
type AbsValue struct { Value rtti.NumberEval Markup map[string]any }
type AbsValue_Slice ¶
type AbsValue_Slice []AbsValue
holds a slice of type abs_value
func (*AbsValue_Slice) Repeats ¶
func (op *AbsValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*AbsValue_Slice) TypeInfo ¶
func (*AbsValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type AddValue ¶
type AddValue struct { A rtti.NumberEval B rtti.NumberEval Markup map[string]any }
Add two numbers.
type AddValue_Slice ¶
type AddValue_Slice []AddValue
holds a slice of type add_value
func (*AddValue_Slice) Repeats ¶
func (op *AddValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*AddValue_Slice) TypeInfo ¶
func (*AddValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type AllTrue ¶
Returns true if all of the evaluations are true.
type AllTrue_Slice ¶
type AllTrue_Slice []AllTrue
holds a slice of type all_true
func (*AllTrue_Slice) TypeInfo ¶
func (*AllTrue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Always_Slice ¶
type Always_Slice []Always
holds a slice of type always
func (*Always_Slice) TypeInfo ¶
func (*Always_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type AnyTrue ¶
Returns true if any of the evaluations are true.
type AnyTrue_Slice ¶
type AnyTrue_Slice []AnyTrue
holds a slice of type any_true
func (*AnyTrue_Slice) TypeInfo ¶
func (*AnyTrue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Blankline ¶
Add a single blank line following some text.
type Blankline_Slice ¶
type Blankline_Slice []Blankline
holds a slice of type blankline
func (*Blankline_Slice) Repeats ¶
func (op *Blankline_Slice) Repeats() bool
implements typeinfo.Repeats
func (*Blankline_Slice) TypeInfo ¶
func (*Blankline_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type BracketText ¶
Sandwiches text printed during a block and puts them inside parenthesis '()'.
func (*BracketText) GetMarkup ¶
func (op *BracketText) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*BracketText) TypeInfo ¶
func (*BracketText) TypeInfo() typeinfo.T
implements typeinfo.Instance
type BracketText_Slice ¶
type BracketText_Slice []BracketText
holds a slice of type bracket_text
func (*BracketText_Slice) Repeats ¶
func (op *BracketText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*BracketText_Slice) TypeInfo ¶
func (*BracketText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Brancher_Slot ¶
type Brancher_Slot struct{ Value Brancher }
holds a single slot.
func (*Brancher_Slot) TypeInfo ¶
func (*Brancher_Slot) TypeInfo() typeinfo.T
implements typeinfo.Instance for a single slot.
type Brancher_Slots ¶
type Brancher_Slots []Brancher
holds a slice of slots.
func (*Brancher_Slots) Repeats ¶
func (op *Brancher_Slots) Repeats() bool
implements typeinfo.Repeats
func (*Brancher_Slots) TypeInfo ¶
func (*Brancher_Slots) TypeInfo() typeinfo.T
implements typeinfo.Instance for a series of slots.
type Break ¶
In a repeating loop, exit the loop; or, in a rule, stop processing rules.
type Break_Slice ¶
type Break_Slice []Break
holds a slice of type break
func (*Break_Slice) TypeInfo ¶
func (*Break_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type BufferText ¶
func (*BufferText) GetMarkup ¶
func (op *BufferText) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
type BufferText_Slice ¶
type BufferText_Slice []BufferText
holds a slice of type buffer_text
func (*BufferText_Slice) Repeats ¶
func (op *BufferText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*BufferText_Slice) TypeInfo ¶
func (*BufferText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CallCycle ¶
Runtime version of cycle_text.
type CallCycle_Slice ¶
type CallCycle_Slice []CallCycle
holds a slice of type call_cycle
func (*CallCycle_Slice) Repeats ¶
func (op *CallCycle_Slice) Repeats() bool
implements typeinfo.Repeats
func (*CallCycle_Slice) TypeInfo ¶
func (*CallCycle_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CallShuffle ¶
type CallShuffle struct { Name string Parts []rtti.TextEval Indices Shuffler Markup map[string]any }
Runtime version of shuffle_text.
func (*CallShuffle) GetMarkup ¶
func (op *CallShuffle) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*CallShuffle) TypeInfo ¶
func (*CallShuffle) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CallShuffle_Slice ¶
type CallShuffle_Slice []CallShuffle
holds a slice of type call_shuffle
func (*CallShuffle_Slice) Repeats ¶
func (op *CallShuffle_Slice) Repeats() bool
implements typeinfo.Repeats
func (*CallShuffle_Slice) TypeInfo ¶
func (*CallShuffle_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CallTerminal ¶
Runtime version of stopping_text.
func (*CallTerminal) GetMarkup ¶
func (op *CallTerminal) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*CallTerminal) TypeInfo ¶
func (*CallTerminal) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CallTerminal_Slice ¶
type CallTerminal_Slice []CallTerminal
holds a slice of type call_terminal
func (*CallTerminal_Slice) Repeats ¶
func (op *CallTerminal_Slice) Repeats() bool
implements typeinfo.Repeats
func (*CallTerminal_Slice) TypeInfo ¶
func (*CallTerminal_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CallTrigger ¶
Runtime version of count_of.
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 call_trigger
func (*CallTrigger_Slice) Repeats ¶
func (op *CallTrigger_Slice) Repeats() bool
implements typeinfo.Repeats
func (*CallTrigger_Slice) TypeInfo ¶
func (*CallTrigger_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Capitalize ¶
Returns new text, with the first letter turned into uppercase.
func (*Capitalize) GetMarkup ¶
func (op *Capitalize) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
type Capitalize_Slice ¶
type Capitalize_Slice []Capitalize
holds a slice of type capitalize
func (*Capitalize_Slice) Repeats ¶
func (op *Capitalize_Slice) Repeats() bool
implements typeinfo.Repeats
func (*Capitalize_Slice) TypeInfo ¶
func (*Capitalize_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ChooseBranch ¶
type ChooseBranch struct { If rtti.BoolEval Args []assign.Arg Exe []rtti.Execute Else Brancher Markup map[string]any }
An if statement. The provided local fields are evaluated before the if test itself.
func PickTree ¶
func PickTree(exe []rt.Execute) (ret *ChooseBranch)
scan for an initial branching statement in a "case like" switch,. that statement indicates a filter for a rule; returns nil if no such statement exists
func (*ChooseBranch) GetMarkup ¶
func (op *ChooseBranch) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*ChooseBranch) PickBranch ¶
loop through descendant branches to find which block we should run. rationale: patterns sometimes need to update counters and *not* run the block which guard them. this makes rule processing and normal branch selection the same.
func (*ChooseBranch) TypeInfo ¶
func (*ChooseBranch) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ChooseBranch_Slice ¶
type ChooseBranch_Slice []ChooseBranch
holds a slice of type choose_branch
func (*ChooseBranch_Slice) Repeats ¶
func (op *ChooseBranch_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ChooseBranch_Slice) TypeInfo ¶
func (*ChooseBranch_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ChooseNothingElse ¶
func (*ChooseNothingElse) Branch ¶
func (op *ChooseNothingElse) Branch(run rt.Runtime) (err error)
else statements can only be run in the context of previous decisions ( include things like the branch of an empty while statements )
func (*ChooseNothingElse) GetMarkup ¶
func (op *ChooseNothingElse) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*ChooseNothingElse) TypeInfo ¶
func (*ChooseNothingElse) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ChooseNothingElse_Slice ¶
type ChooseNothingElse_Slice []ChooseNothingElse
holds a slice of type choose_nothing_else
func (*ChooseNothingElse_Slice) Repeats ¶
func (op *ChooseNothingElse_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ChooseNothingElse_Slice) TypeInfo ¶
func (*ChooseNothingElse_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ChooseNum ¶
type ChooseNum struct { If rtti.BoolEval True rtti.NumberEval False rtti.NumberEval Markup map[string]any }
Pick one of two numbers based on a boolean test.
type ChooseNum_Slice ¶
type ChooseNum_Slice []ChooseNum
holds a slice of type choose_num
func (*ChooseNum_Slice) Repeats ¶
func (op *ChooseNum_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ChooseNum_Slice) TypeInfo ¶
func (*ChooseNum_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ChooseText ¶
type ChooseText struct { If rtti.BoolEval True rtti.TextEval False rtti.TextEval Markup map[string]any }
Pick one of two strings based on a boolean test.
func (*ChooseText) GetMarkup ¶
func (op *ChooseText) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
type ChooseText_Slice ¶
type ChooseText_Slice []ChooseText
holds a slice of type choose_text
func (*ChooseText_Slice) Repeats ¶
func (op *ChooseText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ChooseText_Slice) TypeInfo ¶
func (*ChooseText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CommaText ¶
Separates words with commas, and 'and'.
type CommaText_Slice ¶
type CommaText_Slice []CommaText
holds a slice of type comma_text
func (*CommaText_Slice) Repeats ¶
func (op *CommaText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*CommaText_Slice) TypeInfo ¶
func (*CommaText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CompareNum ¶
type CompareNum struct { A rtti.NumberEval Is Comparison B rtti.NumberEval Tolerance float64 Markup map[string]any }
True if eq,ne,gt,lt,ge,le two numbers.
type CompareNum_Slice ¶
type CompareNum_Slice []CompareNum
holds a slice of type compare_num
func (*CompareNum_Slice) Repeats ¶
func (op *CompareNum_Slice) Repeats() bool
implements typeinfo.Repeats
func (*CompareNum_Slice) TypeInfo ¶
func (*CompareNum_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CompareText ¶
True if eq,ne,gt,lt,ge,le two strings ( lexical. ).
func (*CompareText) GetMarkup ¶
func (op *CompareText) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*CompareText) TypeInfo ¶
func (*CompareText) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CompareText_Slice ¶
type CompareText_Slice []CompareText
holds a slice of type compare_text
func (*CompareText_Slice) Repeats ¶
func (op *CompareText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*CompareText_Slice) TypeInfo ¶
func (*CompareText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CompareType ¶
type CompareType int
Flags used compare values
const ( Compare_EqualTo CompareType = 1 << iota Compare_GreaterThan Compare_LessThan )
func (CompareType) CompareBool ¶
func (cmp CompareType) CompareBool(a, b bool) (ret bool)
compare two bools
func (CompareType) CompareFloat ¶
func (cmp CompareType) CompareFloat(a, b, epsilon float64) (ret bool)
compare two floats, within some small tolerance
func (CompareType) CompareInt ¶
func (cmp CompareType) CompareInt(a, b int) bool
compare two integers
func (CompareType) CompareString ¶
func (cmp CompareType) CompareString(a, b string) bool
compare two strings
func (CompareType) String ¶
func (i CompareType) String() string
type CompareValue ¶
type CompareValue struct { A rtti.Assignment Is Comparison B rtti.Assignment Markup map[string]any }
True if eq,ne,gt,lt,ge,le two numbers.
func (*CompareValue) GetMarkup ¶
func (op *CompareValue) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*CompareValue) TypeInfo ¶
func (*CompareValue) TypeInfo() typeinfo.T
implements typeinfo.Instance
type CompareValue_Slice ¶
type CompareValue_Slice []CompareValue
holds a slice of type compare_value
func (*CompareValue_Slice) Repeats ¶
func (op *CompareValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*CompareValue_Slice) TypeInfo ¶
func (*CompareValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Comparison ¶
type Comparison int
Comparison, a type of str enum.
const ( C_Comparison_EqualTo Comparison = iota C_Comparison_OtherThan C_Comparison_GreaterThan C_Comparison_LessThan C_Comparison_AtLeast C_Comparison_AtMost )
enumerated values of Comparison
func MakeComparison ¶
func MakeComparison(str string) (ret Comparison, okay bool)
func (Comparison) Compare ¶
func (op Comparison) Compare() (ret CompareType)
return flags to help compare numbers
func (Comparison) String ¶
func (op Comparison) String() (ret string)
type Continue ¶
In a repeating loop, try the next iteration of the loop; or, in a rule, continue to the next rule.
type Continue_Slice ¶
type Continue_Slice []Continue
holds a slice of type continue
func (*Continue_Slice) Repeats ¶
func (op *Continue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*Continue_Slice) TypeInfo ¶
func (*Continue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Decrement ¶
Decrease the value of a number held in by a variable or object field. Returns the new value of the number.
type DecrementAspect ¶
type DecrementAspect struct { Target rtti.TextEval Aspect rtti.TextEval Step rtti.NumberEval Clamp rtti.BoolEval Markup map[string]any }
Increases the value of a trait held by an object aspect. Returns the new value of the trait.
func (*DecrementAspect) GetMarkup ¶
func (op *DecrementAspect) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DecrementAspect) TypeInfo ¶
func (*DecrementAspect) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DecrementAspect_Slice ¶
type DecrementAspect_Slice []DecrementAspect
holds a slice of type decrement_aspect
func (*DecrementAspect_Slice) Repeats ¶
func (op *DecrementAspect_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DecrementAspect_Slice) TypeInfo ¶
func (*DecrementAspect_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Decrement_Slice ¶
type Decrement_Slice []Decrement
holds a slice of type decrement
func (*Decrement_Slice) Repeats ¶
func (op *Decrement_Slice) Repeats() bool
implements typeinfo.Repeats
func (*Decrement_Slice) TypeInfo ¶
func (*Decrement_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DivideValue ¶
type DivideValue struct { A rtti.NumberEval B rtti.NumberEval Markup map[string]any }
Divide one number by another.
func (*DivideValue) GetMarkup ¶
func (op *DivideValue) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*DivideValue) TypeInfo ¶
func (*DivideValue) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DivideValue_Slice ¶
type DivideValue_Slice []DivideValue
holds a slice of type divide_value
func (*DivideValue_Slice) Repeats ¶
func (op *DivideValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*DivideValue_Slice) TypeInfo ¶
func (*DivideValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type DoInterrupt ¶
type DoInterrupt struct{ KeepGoing bool }
DoInterrupt - an error code to break out of loops
func (DoInterrupt) Error ¶
func (e DoInterrupt) Error() string
func (DoInterrupt) NoPanic ¶
func (e DoInterrupt) NoPanic()
type During ¶
Decide whether a pattern is running.
type During_Slice ¶
type During_Slice []During
holds a slice of type during
func (*During_Slice) TypeInfo ¶
func (*During_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type FieldsOfKind ¶
List of the field names of a kind.
func (*FieldsOfKind) GetMarkup ¶
func (op *FieldsOfKind) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*FieldsOfKind) GetTextList ¶
tbd: fields of kind could be expanded to full introspection if the Field structure was a record. ( maybe some core classes could be exposed using the test reflection? might make porting harder )
func (*FieldsOfKind) TypeInfo ¶
func (*FieldsOfKind) TypeInfo() typeinfo.T
implements typeinfo.Instance
type FieldsOfKind_Slice ¶
type FieldsOfKind_Slice []FieldsOfKind
holds a slice of type fields_of_kind
func (*FieldsOfKind_Slice) Repeats ¶
func (op *FieldsOfKind_Slice) Repeats() bool
implements typeinfo.Repeats
func (*FieldsOfKind_Slice) TypeInfo ¶
func (*FieldsOfKind_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type HasDominion ¶
func (*HasDominion) GetMarkup ¶
func (op *HasDominion) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*HasDominion) TypeInfo ¶
func (*HasDominion) TypeInfo() typeinfo.T
implements typeinfo.Instance
type HasDominion_Slice ¶
type HasDominion_Slice []HasDominion
holds a slice of type has_dominion
func (*HasDominion_Slice) Repeats ¶
func (op *HasDominion_Slice) Repeats() bool
implements typeinfo.Repeats
func (*HasDominion_Slice) TypeInfo ¶
func (*HasDominion_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type IdOf ¶
A unique object identifier.
type Includes_Slice ¶
type Includes_Slice []Includes
holds a slice of type includes
func (*Includes_Slice) Repeats ¶
func (op *Includes_Slice) Repeats() bool
implements typeinfo.Repeats
func (*Includes_Slice) TypeInfo ¶
func (*Includes_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Increment ¶
Increases the value of a number held in by a variable or object field. Returns the new value of the number.
type IncrementAspect ¶
type IncrementAspect struct { Target rtti.TextEval Aspect rtti.TextEval Step rtti.NumberEval Clamp rtti.BoolEval Markup map[string]any }
Increases the value of a trait held by an object aspect. Returns the new value of the trait.
func (*IncrementAspect) GetMarkup ¶
func (op *IncrementAspect) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*IncrementAspect) TypeInfo ¶
func (*IncrementAspect) TypeInfo() typeinfo.T
implements typeinfo.Instance
type IncrementAspect_Slice ¶
type IncrementAspect_Slice []IncrementAspect
holds a slice of type increment_aspect
func (*IncrementAspect_Slice) Repeats ¶
func (op *IncrementAspect_Slice) Repeats() bool
implements typeinfo.Repeats
func (*IncrementAspect_Slice) TypeInfo ¶
func (*IncrementAspect_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Increment_Slice ¶
type Increment_Slice []Increment
holds a slice of type increment
func (*Increment_Slice) Repeats ¶
func (op *Increment_Slice) Repeats() bool
implements typeinfo.Repeats
func (*Increment_Slice) TypeInfo ¶
func (*Increment_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type IsEmpty_Slice ¶
type IsEmpty_Slice []IsEmpty
holds a slice of type is_empty
func (*IsEmpty_Slice) TypeInfo ¶
func (*IsEmpty_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type IsExactKindOf ¶
True if the object is exactly the named kind.
func (*IsExactKindOf) GetBool ¶
returns true if the indicated object is of the specified kind but not a kind that derives from the specified kind. returns an error if there is no such object; returns the false for an empty request.
func (*IsExactKindOf) GetMarkup ¶
func (op *IsExactKindOf) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*IsExactKindOf) TypeInfo ¶
func (*IsExactKindOf) TypeInfo() typeinfo.T
implements typeinfo.Instance
type IsExactKindOf_Slice ¶
type IsExactKindOf_Slice []IsExactKindOf
holds a slice of type is_exact_kind_of
func (*IsExactKindOf_Slice) Repeats ¶
func (op *IsExactKindOf_Slice) Repeats() bool
implements typeinfo.Repeats
func (*IsExactKindOf_Slice) TypeInfo ¶
func (*IsExactKindOf_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type IsKindOf ¶
True if the object is compatible with the named kind.
func (*IsKindOf) GetBool ¶
returns true if the indicated object is of the specified kind. returns an error if there is no such object; returns the false for an empty request UNLESS nothing objects were specified as being allowed to match.
type IsKindOf_Slice ¶
type IsKindOf_Slice []IsKindOf
holds a slice of type is_kind_of
func (*IsKindOf_Slice) Repeats ¶
func (op *IsKindOf_Slice) Repeats() bool
implements typeinfo.Repeats
func (*IsKindOf_Slice) TypeInfo ¶
func (*IsKindOf_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Join ¶
Returns multiple pieces of text as a single new piece of text.
type KindOf ¶
Friendly name of the object's kind.
type KindOf_Slice ¶
type KindOf_Slice []KindOf
holds a slice of type kind_of
func (*KindOf_Slice) TypeInfo ¶
func (*KindOf_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type KindsOf ¶
A list of compatible kinds.
func (*KindsOf) GetTextList ¶
returns a list of all objects of the specified kind.
type KindsOf_Slice ¶
type KindsOf_Slice []KindsOf
holds a slice of type kinds_of
func (*KindsOf_Slice) TypeInfo ¶
func (*KindsOf_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeLowercase ¶
Returns new text, with every letter turned into lowercase. For example, 'shout' from 'SHOUT'.
func (*MakeLowercase) GetMarkup ¶
func (op *MakeLowercase) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*MakeLowercase) TypeInfo ¶
func (*MakeLowercase) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeLowercase_Slice ¶
type MakeLowercase_Slice []MakeLowercase
holds a slice of type make_lowercase
func (*MakeLowercase_Slice) Repeats ¶
func (op *MakeLowercase_Slice) Repeats() bool
implements typeinfo.Repeats
func (*MakeLowercase_Slice) TypeInfo ¶
func (*MakeLowercase_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeReversed ¶
Returns new text flipped back to front. For example, 'elppA' from 'Apple', or 'noon' from 'noon'.
func (*MakeReversed) GetMarkup ¶
func (op *MakeReversed) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*MakeReversed) TypeInfo ¶
func (*MakeReversed) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeReversed_Slice ¶
type MakeReversed_Slice []MakeReversed
holds a slice of type make_reversed
func (*MakeReversed_Slice) Repeats ¶
func (op *MakeReversed_Slice) Repeats() bool
implements typeinfo.Repeats
func (*MakeReversed_Slice) TypeInfo ¶
func (*MakeReversed_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeSentenceCase ¶
Returns new text, start each sentence with a capital letter. For example, 'Empire Apple.' from 'Empire apple.'.
func (*MakeSentenceCase) GetMarkup ¶
func (op *MakeSentenceCase) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*MakeSentenceCase) TypeInfo ¶
func (*MakeSentenceCase) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeSentenceCase_Slice ¶
type MakeSentenceCase_Slice []MakeSentenceCase
holds a slice of type make_sentence_case
func (*MakeSentenceCase_Slice) Repeats ¶
func (op *MakeSentenceCase_Slice) Repeats() bool
implements typeinfo.Repeats
func (*MakeSentenceCase_Slice) TypeInfo ¶
func (*MakeSentenceCase_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeTitleCase ¶
Returns new text, starting each word with a capital letter. For example, 'Empire Apple' from 'empire apple'.
func (*MakeTitleCase) GetMarkup ¶
func (op *MakeTitleCase) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*MakeTitleCase) TypeInfo ¶
func (*MakeTitleCase) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeTitleCase_Slice ¶
type MakeTitleCase_Slice []MakeTitleCase
holds a slice of type make_title_case
func (*MakeTitleCase_Slice) Repeats ¶
func (op *MakeTitleCase_Slice) Repeats() bool
implements typeinfo.Repeats
func (*MakeTitleCase_Slice) TypeInfo ¶
func (*MakeTitleCase_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeUppercase ¶
Returns new text, with every letter turned into uppercase. For example, 'APPLE' from 'apple'.
func (*MakeUppercase) GetMarkup ¶
func (op *MakeUppercase) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*MakeUppercase) TypeInfo ¶
func (*MakeUppercase) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MakeUppercase_Slice ¶
type MakeUppercase_Slice []MakeUppercase
holds a slice of type make_uppercase
func (*MakeUppercase_Slice) Repeats ¶
func (op *MakeUppercase_Slice) Repeats() bool
implements typeinfo.Repeats
func (*MakeUppercase_Slice) TypeInfo ¶
func (*MakeUppercase_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MatchCache ¶
type MatchCache struct {
// contains filtered or unexported fields
}
type Matches ¶
Determine whether the specified text is similar to the specified regular expression.
type Matches_Slice ¶
type Matches_Slice []Matches
holds a slice of type matches
func (*Matches_Slice) TypeInfo ¶
func (*Matches_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MaxLoopError ¶
type MaxLoopError int
MaxLoopError provides both an error and a counter
var MaxLoopIterations MaxLoopError = 0xbad
func (MaxLoopError) Error ¶
func (e MaxLoopError) Error() string
type ModValue ¶
type ModValue struct { A rtti.NumberEval B rtti.NumberEval Markup map[string]any }
Divide one number by another, and return the remainder.
type ModValue_Slice ¶
type ModValue_Slice []ModValue
holds a slice of type mod_value
func (*ModValue_Slice) Repeats ¶
func (op *ModValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ModValue_Slice) TypeInfo ¶
func (*ModValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MultiplyValue ¶
type MultiplyValue struct { A rtti.NumberEval B rtti.NumberEval Markup map[string]any }
Multiply two numbers.
func (*MultiplyValue) GetMarkup ¶
func (op *MultiplyValue) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*MultiplyValue) TypeInfo ¶
func (*MultiplyValue) TypeInfo() typeinfo.T
implements typeinfo.Instance
type MultiplyValue_Slice ¶
type MultiplyValue_Slice []MultiplyValue
holds a slice of type multiply_value
func (*MultiplyValue_Slice) Repeats ¶
func (op *MultiplyValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*MultiplyValue_Slice) TypeInfo ¶
func (*MultiplyValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type NameOf ¶
Full name of the object.
type NameOf_Slice ¶
type NameOf_Slice []NameOf
holds a slice of type name_of
func (*NameOf_Slice) TypeInfo ¶
func (*NameOf_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Never_Slice ¶
type Never_Slice []Never
holds a slice of type never
func (*Never_Slice) TypeInfo ¶
func (*Never_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Newline_Slice ¶
type Newline_Slice []Newline
holds a slice of type newline
func (*Newline_Slice) TypeInfo ¶
func (*Newline_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ObjectExists ¶
Returns whether there is a object of the specified name.
func (*ObjectExists) GetMarkup ¶
func (op *ObjectExists) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*ObjectExists) TypeInfo ¶
func (*ObjectExists) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ObjectExists_Slice ¶
type ObjectExists_Slice []ObjectExists
holds a slice of type object_exists
func (*ObjectExists_Slice) Repeats ¶
func (op *ObjectExists_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ObjectExists_Slice) TypeInfo ¶
func (*ObjectExists_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ObjectTraits ¶
Returns all of the object's current traits as a list of text.
func (*ObjectTraits) GetMarkup ¶
func (op *ObjectTraits) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*ObjectTraits) GetTextList ¶
func (*ObjectTraits) TypeInfo ¶
func (*ObjectTraits) TypeInfo() typeinfo.T
implements typeinfo.Instance
type ObjectTraits_Slice ¶
type ObjectTraits_Slice []ObjectTraits
holds a slice of type object_traits
func (*ObjectTraits_Slice) Repeats ¶
func (op *ObjectTraits_Slice) Repeats() bool
implements typeinfo.Repeats
func (*ObjectTraits_Slice) TypeInfo ¶
func (*ObjectTraits_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Pluralize ¶
Returns the plural form of a singular word. (ex. apples for apple. ).
type Pluralize_Slice ¶
type Pluralize_Slice []Pluralize
holds a slice of type pluralize
func (*Pluralize_Slice) Repeats ¶
func (op *Pluralize_Slice) Repeats() bool
implements typeinfo.Repeats
func (*Pluralize_Slice) TypeInfo ¶
func (*Pluralize_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type PrintNum ¶
type PrintNum struct { Num rtti.NumberEval Markup map[string]any }
Writes a number using numerals, eg. '1'.
Example ¶
var run sayTester run.SetWriter(os.Stdout) if e := safe.WriteText(&run, &PrintNum{Num: F(213)}); e != nil { panic(e) }
Output: 213
type PrintNumWord ¶
type PrintNumWord struct { Num rtti.NumberEval Markup map[string]any }
Writes a number in plain english: eg. 'one'.
Example ¶
var run sayTester run.SetWriter(os.Stdout) if e := safe.WriteText(&run, &PrintNumWord{Num: F(213)}); e != nil { panic(e) }
Output: two hundred thirteen
func (*PrintNumWord) GetMarkup ¶
func (op *PrintNumWord) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*PrintNumWord) TypeInfo ¶
func (*PrintNumWord) TypeInfo() typeinfo.T
implements typeinfo.Instance
type PrintNumWord_Slice ¶
type PrintNumWord_Slice []PrintNumWord
holds a slice of type print_num_word
func (*PrintNumWord_Slice) Repeats ¶
func (op *PrintNumWord_Slice) Repeats() bool
implements typeinfo.Repeats
func (*PrintNumWord_Slice) TypeInfo ¶
func (*PrintNumWord_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type PrintNum_Slice ¶
type PrintNum_Slice []PrintNum
holds a slice of type print_num
func (*PrintNum_Slice) Repeats ¶
func (op *PrintNum_Slice) Repeats() bool
implements typeinfo.Repeats
func (*PrintNum_Slice) TypeInfo ¶
func (*PrintNum_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type PrintText ¶
Display some text to the player without apply any additional formatting.
type PrintText_Slice ¶
type PrintText_Slice []PrintText
holds a slice of type print_text
func (*PrintText_Slice) Repeats ¶
func (op *PrintText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*PrintText_Slice) TypeInfo ¶
func (*PrintText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Row ¶
Group text into a single line <li> as part of a list of lines. See also: 'rows'.
type Rows ¶
Group text into an unordered list <ul>.
type Singularize ¶
Returns the singular form of a plural word. (ex. apple for apples ).
func (*Singularize) GetMarkup ¶
func (op *Singularize) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*Singularize) TypeInfo ¶
func (*Singularize) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Singularize_Slice ¶
type Singularize_Slice []Singularize
holds a slice of type singularize
func (*Singularize_Slice) Repeats ¶
func (op *Singularize_Slice) Repeats() bool
implements typeinfo.Repeats
func (*Singularize_Slice) TypeInfo ¶
func (*Singularize_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type SlashText ¶
Separates words with left-leaning slashes '/'.
type SlashText_Slice ¶
type SlashText_Slice []SlashText
holds a slice of type slash_text
func (*SlashText_Slice) Repeats ¶
func (op *SlashText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*SlashText_Slice) TypeInfo ¶
func (*SlashText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type Softline ¶
Start a new line ( if not already at a new line. ).
type Softline_Slice ¶
type Softline_Slice []Softline
holds a slice of type softline
func (*Softline_Slice) Repeats ¶
func (op *Softline_Slice) Repeats() bool
implements typeinfo.Repeats
func (*Softline_Slice) TypeInfo ¶
func (*Softline_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type SpanText ¶
Writes text with spaces between words.
type SpanText_Slice ¶
type SpanText_Slice []SpanText
holds a slice of type span_text
func (*SpanText_Slice) Repeats ¶
func (op *SpanText_Slice) Repeats() bool
implements typeinfo.Repeats
func (*SpanText_Slice) TypeInfo ¶
func (*SpanText_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type SubtractValue ¶
type SubtractValue struct { A rtti.NumberEval B rtti.NumberEval Markup map[string]any }
Subtract two numbers.
func (*SubtractValue) GetMarkup ¶
func (op *SubtractValue) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*SubtractValue) TypeInfo ¶
func (*SubtractValue) TypeInfo() typeinfo.T
implements typeinfo.Instance
type SubtractValue_Slice ¶
type SubtractValue_Slice []SubtractValue
holds a slice of type subtract_value
func (*SubtractValue_Slice) Repeats ¶
func (op *SubtractValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*SubtractValue_Slice) TypeInfo ¶
func (*SubtractValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type TriggerCycle ¶
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 trigger_cycle
func (*TriggerCycle_Slice) Repeats ¶
func (op *TriggerCycle_Slice) Repeats() bool
implements typeinfo.Repeats
func (*TriggerCycle_Slice) TypeInfo ¶
func (*TriggerCycle_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type TriggerOnce ¶
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 trigger_once
func (*TriggerOnce_Slice) Repeats ¶
func (op *TriggerOnce_Slice) Repeats() bool
implements typeinfo.Repeats
func (*TriggerOnce_Slice) TypeInfo ¶
func (*TriggerOnce_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type TriggerSwitch ¶
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 trigger_switch
func (*TriggerSwitch_Slice) Repeats ¶
func (op *TriggerSwitch_Slice) Repeats() bool
implements typeinfo.Repeats
func (*TriggerSwitch_Slice) TypeInfo ¶
func (*TriggerSwitch_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
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) TypeInfo ¶
func (*Trigger_Slots) TypeInfo() typeinfo.T
implements typeinfo.Instance for a series of slots.
type While ¶
Keep running a series of actions while a condition is true.
type While_Slice ¶
type While_Slice []While
holds a slice of type while
func (*While_Slice) TypeInfo ¶
func (*While_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
Source Files ¶
- allTrue.go
- break.go
- compare.go
- compareType.go
- comparetype_string.go
- core.go
- coreBranch.go
- coreCountOf.go
- coreDomain.go
- coreDuring.go
- coreEncoding.go
- coreKinds.go
- coreLines.go
- coreRead.go
- coreRows.go
- coreTernary.go
- core_types.go
- isnit.go
- match.go
- math.go
- objects.go
- print.go
- say.go
- seq.go
- testing.go
- text.go
- while.go
- xform.go