core

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: 27 Imported by: 0

Documentation

Overview

Code generated by Tapestry; edit at your own risk.

Index

Examples

Constants

This section is empty.

Variables

View Source
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
)
View Source
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

View Source
var Zt_AbsValue typeinfo.Flow

abs_value, a type of flow.

View Source
var Zt_AddValue typeinfo.Flow

add_value, a type of flow.

View Source
var Zt_AllTrue typeinfo.Flow

all_true, a type of flow.

View Source
var Zt_Always typeinfo.Flow

always, a type of flow.

View Source
var Zt_AnyTrue typeinfo.Flow

any_true, a type of flow.

View Source
var Zt_Blankline typeinfo.Flow

blankline, a type of flow.

View Source
var Zt_BracketText typeinfo.Flow

bracket_text, a type of flow.

View Source
var Zt_Brancher = typeinfo.Slot{
	Name: "brancher",
	Markup: map[string]any{
		"comment": "Helper for choose action.",
	},
}

brancher, a type of slot.

View Source
var Zt_Break typeinfo.Flow

break, a type of flow.

View Source
var Zt_BufferText typeinfo.Flow

buffer_text, a type of flow.

View Source
var Zt_CallCycle typeinfo.Flow

call_cycle, a type of flow.

View Source
var Zt_CallShuffle typeinfo.Flow

call_shuffle, a type of flow.

View Source
var Zt_CallTerminal typeinfo.Flow

call_terminal, a type of flow.

View Source
var Zt_CallTrigger typeinfo.Flow

call_trigger, a type of flow.

View Source
var Zt_Capitalize typeinfo.Flow

capitalize, a type of flow.

View Source
var Zt_ChooseBranch typeinfo.Flow

choose_branch, a type of flow.

View Source
var Zt_ChooseNothingElse typeinfo.Flow

choose_nothing_else, a type of flow.

View Source
var Zt_ChooseNum typeinfo.Flow

choose_num, a type of flow.

View Source
var Zt_ChooseText typeinfo.Flow

choose_text, a type of flow.

View Source
var Zt_CommaText typeinfo.Flow

comma_text, a type of flow.

View Source
var Zt_CompareNum typeinfo.Flow

compare_num, a type of flow.

View Source
var Zt_CompareText typeinfo.Flow

compare_text, a type of flow.

View Source
var Zt_CompareValue typeinfo.Flow

compare_value, a type of flow.

View Source
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.

View Source
var Zt_Continue typeinfo.Flow

continue, a type of flow.

View Source
var Zt_Decrement typeinfo.Flow

decrement, a type of flow.

View Source
var Zt_DecrementAspect typeinfo.Flow

decrement_aspect, a type of flow.

View Source
var Zt_DivideValue typeinfo.Flow

divide_value, a type of flow.

View Source
var Zt_During typeinfo.Flow

during, a type of flow.

View Source
var Zt_FieldsOfKind typeinfo.Flow

fields_of_kind, a type of flow.

View Source
var Zt_HasDominion typeinfo.Flow

has_dominion, a type of flow.

View Source
var Zt_IdOf typeinfo.Flow

id_of, a type of flow.

View Source
var Zt_Includes typeinfo.Flow

includes, a type of flow.

View Source
var Zt_Increment typeinfo.Flow

increment, a type of flow.

View Source
var Zt_IncrementAspect typeinfo.Flow

increment_aspect, a type of flow.

View Source
var Zt_IsEmpty typeinfo.Flow

is_empty, a type of flow.

View Source
var Zt_IsExactKindOf typeinfo.Flow

is_exact_kind_of, a type of flow.

View Source
var Zt_IsKindOf typeinfo.Flow

is_kind_of, a type of flow.

View Source
var Zt_Join typeinfo.Flow

join, a type of flow.

View Source
var Zt_KindOf typeinfo.Flow

kind_of, a type of flow.

View Source
var Zt_KindsOf typeinfo.Flow

kinds_of, a type of flow.

View Source
var Zt_MakeLowercase typeinfo.Flow

make_lowercase, a type of flow.

View Source
var Zt_MakeReversed typeinfo.Flow

make_reversed, a type of flow.

View Source
var Zt_MakeSentenceCase typeinfo.Flow

make_sentence_case, a type of flow.

View Source
var Zt_MakeTitleCase typeinfo.Flow

make_title_case, a type of flow.

View Source
var Zt_MakeUppercase typeinfo.Flow

make_uppercase, a type of flow.

View Source
var Zt_Matches typeinfo.Flow

matches, a type of flow.

View Source
var Zt_ModValue typeinfo.Flow

mod_value, a type of flow.

View Source
var Zt_MultiplyValue typeinfo.Flow

multiply_value, a type of flow.

View Source
var Zt_NameOf typeinfo.Flow

name_of, a type of flow.

View Source
var Zt_Never typeinfo.Flow

never, a type of flow.

View Source
var Zt_Newline typeinfo.Flow

newline, a type of flow.

not, a type of flow.

View Source
var Zt_ObjectExists typeinfo.Flow

object_exists, a type of flow.

View Source
var Zt_ObjectTraits typeinfo.Flow

object_traits, a type of flow.

View Source
var Zt_Pluralize typeinfo.Flow

pluralize, a type of flow.

View Source
var Zt_PrintNum typeinfo.Flow

print_num, a type of flow.

View Source
var Zt_PrintNumWord typeinfo.Flow

print_num_word, a type of flow.

View Source
var Zt_PrintText typeinfo.Flow

print_text, a type of flow.

row, a type of flow.

View Source
var Zt_Rows typeinfo.Flow

rows, a type of flow.

View Source
var Zt_Singularize typeinfo.Flow

singularize, a type of flow.

View Source
var Zt_SlashText typeinfo.Flow

slash_text, a type of flow.

View Source
var Zt_Softline typeinfo.Flow

softline, a type of flow.

View Source
var Zt_SpanText typeinfo.Flow

span_text, a type of flow.

View Source
var Zt_SubtractValue typeinfo.Flow

subtract_value, a type of flow.

View Source
var Zt_Trigger = typeinfo.Slot{
	Name: "trigger",
	Markup: map[string]any{
		"comment": "Helper for counting values.",
	},
}

trigger, a type of slot.

View Source
var Zt_TriggerCycle typeinfo.Flow

trigger_cycle, a type of flow.

View Source
var Zt_TriggerOnce typeinfo.Flow

trigger_once, a type of flow.

View Source
var Zt_TriggerSwitch typeinfo.Flow

trigger_switch, a type of flow.

View Source
var Zt_While typeinfo.Flow

while, a type of flow.

Functions

func CustomDecoder

func CustomDecoder(dec *decode.Decoder, slot *typeinfo.Slot, body any) (ret typeinfo.Instance, err error)

func CustomEncoder

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

fix: move some part of this into package assign? especially because the opposite is handled in... story?

func MakeActivity

func MakeActivity(exe ...rt.Execute) []rt.Execute

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.

func MakeDot

func MakeDot(path ...any) (ret []assign.Dot)

func MakeRule

func MakeRule(filter rt.BoolEval, exe ...rt.Execute) (ret rt.Rule)

for tests

func N

func N(variableName string) string

func Object

func Object(name, field string, path ...any) *assign.ObjectRef

func P

func P(patternName string) string

func Variable

func Variable(name string, path ...any) *assign.VariableRef

generate a statement which extracts a variable's value. path can include strings ( for reading from records ) or integers ( for reading from lists )

func W

func W(plainText string) string

Types

type AbsValue

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

func (*AbsValue) GetMarkup

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

implements typeinfo.Markup

func (*AbsValue) GetNumber

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

func (*AbsValue) TypeInfo

func (*AbsValue) TypeInfo() typeinfo.T

implements typeinfo.Instance

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.

func (*AddValue) GetMarkup

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

implements typeinfo.Markup

func (*AddValue) GetNumber

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

func (*AddValue) TypeInfo

func (*AddValue) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

type AllTrue struct {
	Test   []rtti.BoolEval
	Markup map[string]any
}

Returns true if all of the evaluations are true.

func (*AllTrue) GetBool

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

func (*AllTrue) GetMarkup

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

implements typeinfo.Markup

func (*AllTrue) TypeInfo

func (*AllTrue) TypeInfo() typeinfo.T

implements typeinfo.Instance

type AllTrue_Slice

type AllTrue_Slice []AllTrue

holds a slice of type all_true

func (*AllTrue_Slice) Repeats

func (op *AllTrue_Slice) Repeats() bool

implements typeinfo.Repeats

func (*AllTrue_Slice) TypeInfo

func (*AllTrue_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Always

type Always struct {
	Markup map[string]any
}

Returns true.

func (*Always) GetBool

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

func (*Always) GetMarkup

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

implements typeinfo.Markup

func (*Always) TypeInfo

func (*Always) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Always_Slice

type Always_Slice []Always

holds a slice of type always

func (*Always_Slice) Repeats

func (op *Always_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Always_Slice) TypeInfo

func (*Always_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type AnyTrue

type AnyTrue struct {
	Test   []rtti.BoolEval
	Markup map[string]any
}

Returns true if any of the evaluations are true.

func (*AnyTrue) GetBool

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

func (*AnyTrue) GetMarkup

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

implements typeinfo.Markup

func (*AnyTrue) TypeInfo

func (*AnyTrue) TypeInfo() typeinfo.T

implements typeinfo.Instance

type AnyTrue_Slice

type AnyTrue_Slice []AnyTrue

holds a slice of type any_true

func (*AnyTrue_Slice) Repeats

func (op *AnyTrue_Slice) Repeats() bool

implements typeinfo.Repeats

func (*AnyTrue_Slice) TypeInfo

func (*AnyTrue_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Blankline

type Blankline struct {
	Markup map[string]any
}

Add a single blank line following some text.

func (*Blankline) Execute

func (op *Blankline) Execute(run rt.Runtime) (_ error)

func (*Blankline) GetMarkup

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

implements typeinfo.Markup

func (*Blankline) TypeInfo

func (*Blankline) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

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

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) GetText

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

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

type Brancher interface {
	Branch(rt.Runtime) error
}

Brancher connects else and else-if clauses.

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

type Break struct {
	Markup map[string]any
}

In a repeating loop, exit the loop; or, in a rule, stop processing rules.

func (*Break) Execute

func (*Break) Execute(rt.Runtime) error

func (*Break) GetMarkup

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

implements typeinfo.Markup

func (*Break) TypeInfo

func (*Break) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Break_Slice

type Break_Slice []Break

holds a slice of type break

func (*Break_Slice) Repeats

func (op *Break_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Break_Slice) TypeInfo

func (*Break_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type BufferText

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

func (*BufferText) GetMarkup

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

implements typeinfo.Markup

func (*BufferText) GetText

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

collect all text written during this function and return it as a value

func (*BufferText) TypeInfo

func (*BufferText) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

type CallCycle struct {
	Name   string
	Parts  []rtti.TextEval
	Markup map[string]any
}

Runtime version of cycle_text.

func (*CallCycle) GetMarkup

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

implements typeinfo.Markup

func (*CallCycle) GetText

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

func (*CallCycle) TypeInfo

func (*CallCycle) TypeInfo() typeinfo.T

implements typeinfo.Instance

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) GetText

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

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

type CallTerminal struct {
	Name   string
	Parts  []rtti.TextEval
	Markup map[string]any
}

Runtime version of stopping_text.

func (*CallTerminal) GetMarkup

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

implements typeinfo.Markup

func (*CallTerminal) GetText

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

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

type CallTrigger struct {
	Name    string
	Trigger Trigger
	Num     rtti.NumberEval
	Markup  map[string]any
}

Runtime version of count_of.

func (*CallTrigger) GetBool

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

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

type Capitalize struct {
	Text   rtti.TextEval
	Markup map[string]any
}

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

func (*Capitalize) GetText

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

func (*Capitalize) TypeInfo

func (*Capitalize) TypeInfo() typeinfo.T

implements typeinfo.Instance

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) Branch

func (op *ChooseBranch) Branch(run rt.Runtime) (err error)

func (*ChooseBranch) Execute

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

func (*ChooseBranch) GetMarkup

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

implements typeinfo.Markup

func (*ChooseBranch) PickBranch

func (op *ChooseBranch) PickBranch(run rt.Runtime, pushes *int) (ret []rt.Execute, err error)

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

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

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.

func (*ChooseNum) GetMarkup

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

implements typeinfo.Markup

func (*ChooseNum) GetNumber

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

func (*ChooseNum) TypeInfo

func (*ChooseNum) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

func (*ChooseText) GetText

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

func (*ChooseText) TypeInfo

func (*ChooseText) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

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

Separates words with commas, and 'and'.

func (*CommaText) GetMarkup

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

implements typeinfo.Markup

func (*CommaText) GetText

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

func (*CommaText) TypeInfo

func (*CommaText) TypeInfo() typeinfo.T

implements typeinfo.Instance

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.

func (*CompareNum) GetBool

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

func (*CompareNum) GetMarkup

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

implements typeinfo.Markup

func (*CompareNum) TypeInfo

func (*CompareNum) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

type CompareText struct {
	A      rtti.TextEval
	Is     Comparison
	B      rtti.TextEval
	Markup map[string]any
}

True if eq,ne,gt,lt,ge,le two strings ( lexical. ).

func (*CompareText) GetBool

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

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) GetBool

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

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

type Continue struct {
	Markup map[string]any
}

In a repeating loop, try the next iteration of the loop; or, in a rule, continue to the next rule.

func (*Continue) Execute

func (*Continue) Execute(rt.Runtime) error

func (*Continue) GetMarkup

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

implements typeinfo.Markup

func (*Continue) TypeInfo

func (*Continue) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

type Decrement struct {
	Target assign.Address
	Step   rtti.NumberEval
	Markup map[string]any
}

Decrease the value of a number held in by a variable or object field. Returns the new value of the number.

func (*Decrement) Execute

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

func (*Decrement) GetMarkup

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

implements typeinfo.Markup

func (*Decrement) GetNumber

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

func (*Decrement) TypeInfo

func (*Decrement) TypeInfo() typeinfo.T

implements typeinfo.Instance

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) Execute

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

func (*DecrementAspect) GetMarkup

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

implements typeinfo.Markup

func (*DecrementAspect) GetText

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

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) GetNumber

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

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

type During struct {
	PatternName string
	Markup      map[string]any
}

Decide whether a pattern is running.

func (*During) GetBool

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

GetBool returns the first matching bool evaluation.

func (*During) GetMarkup

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

implements typeinfo.Markup

func (*During) GetNumber

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

func (*During) TypeInfo

func (*During) TypeInfo() typeinfo.T

implements typeinfo.Instance

type During_Slice

type During_Slice []During

holds a slice of type during

func (*During_Slice) Repeats

func (op *During_Slice) Repeats() bool

implements typeinfo.Repeats

func (*During_Slice) TypeInfo

func (*During_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type FieldsOfKind

type FieldsOfKind struct {
	KindName rtti.TextEval
	Markup   map[string]any
}

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

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

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

type HasDominion struct {
	Name   string
	Markup map[string]any
}

func (*HasDominion) GetBool

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

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

type IdOf struct {
	Object rtti.TextEval
	Markup map[string]any
}

A unique object identifier.

func (*IdOf) GetMarkup

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

implements typeinfo.Markup

func (*IdOf) GetText

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

return the unique object name for the indicated object. returns an error if there is no such object; returns the empty string for an empty id.

func (*IdOf) TypeInfo

func (*IdOf) TypeInfo() typeinfo.T

implements typeinfo.Instance

type IdOf_Slice

type IdOf_Slice []IdOf

holds a slice of type id_of

func (*IdOf_Slice) Repeats

func (op *IdOf_Slice) Repeats() bool

implements typeinfo.Repeats

func (*IdOf_Slice) TypeInfo

func (*IdOf_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Includes

type Includes struct {
	Text   rtti.TextEval
	Part   rtti.TextEval
	Markup map[string]any
}

True if text contains text.

func (*Includes) GetBool

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

func (*Includes) GetMarkup

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

implements typeinfo.Markup

func (*Includes) TypeInfo

func (*Includes) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

type Increment struct {
	Target assign.Address
	Step   rtti.NumberEval
	Markup map[string]any
}

Increases the value of a number held in by a variable or object field. Returns the new value of the number.

func (*Increment) Execute

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

func (*Increment) GetMarkup

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

implements typeinfo.Markup

func (*Increment) GetNumber

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

func (*Increment) TypeInfo

func (*Increment) TypeInfo() typeinfo.T

implements typeinfo.Instance

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) Execute

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

func (*IncrementAspect) GetMarkup

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

implements typeinfo.Markup

func (*IncrementAspect) GetText

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

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

type IsEmpty struct {
	Text   rtti.TextEval
	Markup map[string]any
}

True if the text is empty.

func (*IsEmpty) GetBool

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

func (*IsEmpty) GetMarkup

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

implements typeinfo.Markup

func (*IsEmpty) TypeInfo

func (*IsEmpty) TypeInfo() typeinfo.T

implements typeinfo.Instance

type IsEmpty_Slice

type IsEmpty_Slice []IsEmpty

holds a slice of type is_empty

func (*IsEmpty_Slice) Repeats

func (op *IsEmpty_Slice) Repeats() bool

implements typeinfo.Repeats

func (*IsEmpty_Slice) TypeInfo

func (*IsEmpty_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type IsExactKindOf

type IsExactKindOf struct {
	Object rtti.TextEval
	Kind   string
	Markup map[string]any
}

True if the object is exactly the named kind.

func (*IsExactKindOf) GetBool

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

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

type IsKindOf struct {
	Object  rtti.TextEval
	Kind    string
	Nothing bool
	Markup  map[string]any
}

True if the object is compatible with the named kind.

func (*IsKindOf) GetBool

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

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.

func (*IsKindOf) GetMarkup

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

implements typeinfo.Markup

func (*IsKindOf) TypeInfo

func (*IsKindOf) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

type Join struct {
	Sep    rtti.TextEval
	Parts  []rtti.TextEval
	Markup map[string]any
}

Returns multiple pieces of text as a single new piece of text.

func (*Join) GetMarkup

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

implements typeinfo.Markup

func (*Join) GetText

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

func (*Join) TypeInfo

func (*Join) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Join_Slice

type Join_Slice []Join

holds a slice of type join

func (*Join_Slice) Repeats

func (op *Join_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Join_Slice) TypeInfo

func (*Join_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type KindOf

type KindOf struct {
	Object  rtti.TextEval
	Nothing bool
	Markup  map[string]any
}

Friendly name of the object's kind.

func (*KindOf) GetMarkup

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

implements typeinfo.Markup

func (*KindOf) GetText

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

returns the kind of the indicated object. returns an error if there is no such object; returns the empty string for an empty request.

func (*KindOf) TypeInfo

func (*KindOf) TypeInfo() typeinfo.T

implements typeinfo.Instance

type KindOf_Slice

type KindOf_Slice []KindOf

holds a slice of type kind_of

func (*KindOf_Slice) Repeats

func (op *KindOf_Slice) Repeats() bool

implements typeinfo.Repeats

func (*KindOf_Slice) TypeInfo

func (*KindOf_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type KindsOf

type KindsOf struct {
	Kind   string
	Markup map[string]any
}

A list of compatible kinds.

func (*KindsOf) GetMarkup

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

implements typeinfo.Markup

func (*KindsOf) GetTextList

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

returns a list of all objects of the specified kind.

func (*KindsOf) TypeInfo

func (*KindsOf) TypeInfo() typeinfo.T

implements typeinfo.Instance

type KindsOf_Slice

type KindsOf_Slice []KindsOf

holds a slice of type kinds_of

func (*KindsOf_Slice) Repeats

func (op *KindsOf_Slice) Repeats() bool

implements typeinfo.Repeats

func (*KindsOf_Slice) TypeInfo

func (*KindsOf_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type MakeLowercase

type MakeLowercase struct {
	Text   rtti.TextEval
	Markup map[string]any
}

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) GetText

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

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

type MakeReversed struct {
	Text   rtti.TextEval
	Markup map[string]any
}

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) GetText

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

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

type MakeSentenceCase struct {
	Text   rtti.TextEval
	Markup map[string]any
}

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) GetText

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

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

type MakeTitleCase struct {
	Text   rtti.TextEval
	Markup map[string]any
}

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) GetText

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

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

type MakeUppercase struct {
	Text   rtti.TextEval
	Markup map[string]any
}

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) GetText

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

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

type Matches struct {
	Text   rtti.TextEval
	Match  string
	Cache  MatchCache
	Markup map[string]any
}

Determine whether the specified text is similar to the specified regular expression.

func (*Matches) GetBool

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

func (*Matches) GetMarkup

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

implements typeinfo.Markup

func (*Matches) TypeInfo

func (*Matches) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Matches_Slice

type Matches_Slice []Matches

holds a slice of type matches

func (*Matches_Slice) Repeats

func (op *Matches_Slice) Repeats() bool

implements typeinfo.Repeats

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.

func (*ModValue) GetMarkup

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

implements typeinfo.Markup

func (*ModValue) GetNumber

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

func (*ModValue) TypeInfo

func (*ModValue) TypeInfo() typeinfo.T

implements typeinfo.Instance

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) GetNumber

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

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

type NameOf struct {
	Object rtti.TextEval
	Markup map[string]any
}

Full name of the object.

func (*NameOf) GetMarkup

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

implements typeinfo.Markup

func (*NameOf) GetText

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

returns the author specified name for the indicated object. returns an error if there is no such object; returns the empty string for an empty request.

func (*NameOf) TypeInfo

func (*NameOf) TypeInfo() typeinfo.T

implements typeinfo.Instance

type NameOf_Slice

type NameOf_Slice []NameOf

holds a slice of type name_of

func (*NameOf_Slice) Repeats

func (op *NameOf_Slice) Repeats() bool

implements typeinfo.Repeats

func (*NameOf_Slice) TypeInfo

func (*NameOf_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Never

type Never struct {
	Markup map[string]any
}

Returns false.

func (*Never) GetBool

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

func (*Never) GetMarkup

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

implements typeinfo.Markup

func (*Never) TypeInfo

func (*Never) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Never_Slice

type Never_Slice []Never

holds a slice of type never

func (*Never_Slice) Repeats

func (op *Never_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Never_Slice) TypeInfo

func (*Never_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Newline

type Newline struct {
	Markup map[string]any
}

Start a new line.

func (*Newline) Execute

func (op *Newline) Execute(run rt.Runtime) (_ error)

func (*Newline) GetMarkup

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

implements typeinfo.Markup

func (*Newline) TypeInfo

func (*Newline) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Newline_Slice

type Newline_Slice []Newline

holds a slice of type newline

func (*Newline_Slice) Repeats

func (op *Newline_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Newline_Slice) TypeInfo

func (*Newline_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Not

type Not struct {
	Test   rtti.BoolEval
	Markup map[string]any
}

Returns the opposite value.

func (*Not) GetBool

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

func (*Not) GetMarkup

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

implements typeinfo.Markup

func (*Not) TypeInfo

func (*Not) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Not_Slice

type Not_Slice []Not

holds a slice of type not

func (*Not_Slice) Repeats

func (op *Not_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Not_Slice) TypeInfo

func (*Not_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type ObjectExists

type ObjectExists struct {
	Object rtti.TextEval
	Markup map[string]any
}

Returns whether there is a object of the specified name.

func (*ObjectExists) GetBool

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

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

type ObjectTraits struct {
	Object rtti.TextEval
	Markup map[string]any
}

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 (op *ObjectTraits) GetTextList(run rt.Runtime) (ret rt.Value, err error)

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

type Pluralize struct {
	Text   rtti.TextEval
	Markup map[string]any
}

Returns the plural form of a singular word. (ex. apples for apple. ).

func (*Pluralize) GetMarkup

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

implements typeinfo.Markup

func (*Pluralize) GetText

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

func (*Pluralize) TypeInfo

func (*Pluralize) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

func (*PrintNum) GetMarkup

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

implements typeinfo.Markup

func (*PrintNum) GetText

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

func (*PrintNum) TypeInfo

func (*PrintNum) TypeInfo() typeinfo.T

implements typeinfo.Instance

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) GetText

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

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

type PrintText struct {
	Text   rtti.TextEval
	Markup map[string]any
}

Display some text to the player without apply any additional formatting.

func (*PrintText) Execute

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

Execute writes text to the runtime's current writer.

func (*PrintText) GetMarkup

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

implements typeinfo.Markup

func (*PrintText) TypeInfo

func (*PrintText) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

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

Group text into a single line <li> as part of a list of lines. See also: 'rows'.

func (*Row) GetMarkup

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

implements typeinfo.Markup

func (*Row) GetText

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

func (*Row) TypeInfo

func (*Row) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Row_Slice

type Row_Slice []Row

holds a slice of type row

func (*Row_Slice) Repeats

func (op *Row_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Row_Slice) TypeInfo

func (*Row_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Rows

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

Group text into an unordered list <ul>.

func (*Rows) GetMarkup

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

implements typeinfo.Markup

func (*Rows) GetText

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

func (*Rows) TypeInfo

func (*Rows) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Rows_Slice

type Rows_Slice []Rows

holds a slice of type rows

func (*Rows_Slice) Repeats

func (op *Rows_Slice) Repeats() bool

implements typeinfo.Repeats

func (*Rows_Slice) TypeInfo

func (*Rows_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

type Shuffler

type Shuffler struct {
	// contains filtered or unexported fields
}

type Singularize

type Singularize struct {
	Text   rtti.TextEval
	Markup map[string]any
}

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) GetText

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

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

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

Separates words with left-leaning slashes '/'.

func (*SlashText) GetMarkup

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

implements typeinfo.Markup

func (*SlashText) GetText

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

func (*SlashText) TypeInfo

func (*SlashText) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

type Softline struct {
	Markup map[string]any
}

Start a new line ( if not already at a new line. ).

func (*Softline) Execute

func (op *Softline) Execute(run rt.Runtime) (_ error)

func (*Softline) GetMarkup

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

implements typeinfo.Markup

func (*Softline) TypeInfo

func (*Softline) TypeInfo() typeinfo.T

implements typeinfo.Instance

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

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

Writes text with spaces between words.

func (*SpanText) GetMarkup

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

implements typeinfo.Markup

func (*SpanText) GetText

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

func (*SpanText) TypeInfo

func (*SpanText) TypeInfo() typeinfo.T

implements typeinfo.Instance

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) GetNumber

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

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 Trigger

type Trigger interface{ Trigger() Trigger }

type TriggerCycle

type TriggerCycle struct {
	Markup map[string]any
}

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

type TriggerOnce struct {
	Markup map[string]any
}

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

type TriggerSwitch struct {
	Markup map[string]any
}

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) Repeats

func (op *Trigger_Slots) Repeats() bool

implements typeinfo.Repeats

func (*Trigger_Slots) TypeInfo

func (*Trigger_Slots) TypeInfo() typeinfo.T

implements typeinfo.Instance for a series of slots.

type While

type While struct {
	True   rtti.BoolEval
	Exe    []rtti.Execute
	Markup map[string]any
}

Keep running a series of actions while a condition is true.

func (*While) Execute

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

func (*While) GetMarkup

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

implements typeinfo.Markup

func (*While) TypeInfo

func (*While) TypeInfo() typeinfo.T

implements typeinfo.Instance

type While_Slice

type While_Slice []While

holds a slice of type while

func (*While_Slice) Repeats

func (op *While_Slice) Repeats() bool

implements typeinfo.Repeats

func (*While_Slice) TypeInfo

func (*While_Slice) TypeInfo() typeinfo.T

implements typeinfo.Instance

Jump to

Keyboard shortcuts

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