Documentation
¶
Overview ¶
Code generated by Tapestry; edit at your own risk.
Index ¶
- Variables
- func CustomDecoder(_ *decode.Decoder, slot *typeinfo.Slot, body any) (typeinfo.Instance, error)
- func CustomEncoder(enc *encode.Encoder, op typeinfo.Instance) (ret any, err error)
- func DecodeLiteral(slot *typeinfo.Slot, body any) (ret typeinfo.Instance, err error)
- func GetAffinity(a LiteralValue) (ret affine.Affinity)
- type BoolValue
- type BoolValue_Slice
- type FieldList
- type FieldList_Slice
- type FieldValue
- type FieldValue_Slice
- type LiteralValue
- type LiteralValue_Slot
- type LiteralValue_Slots
- type NumValue
- func (op *NumValue) Float() float64
- func (op *NumValue) GetLiteralValue(rt.Kinds) (ret rt.Value, _ error)
- func (op *NumValue) GetMarkup(ensure bool) map[string]any
- func (op *NumValue) GetNumber(run rt.Runtime) (rt.Value, error)
- func (op *NumValue) Int() int
- func (op *NumValue) String() string
- func (*NumValue) TypeInfo() typeinfo.T
- type NumValue_Slice
- type NumValues
- type NumValues_Slice
- type RecordCache
- type RecordList
- type RecordList_Slice
- type RecordValue
- type RecordValue_Slice
- type RecordsCache
- type TextValue
- type TextValue_Slice
- type TextValues
- type TextValues_Slice
Constants ¶
This section is empty.
Variables ¶
var Z_Types = typeinfo.TypeSet{
Name: "literal",
Slot: z_slot_list,
Flow: z_flow_list,
Signatures: z_signatures,
}
package listing of type data
var Zt_BoolValue typeinfo.Flow
bool_value, a type of flow.
var Zt_FieldList typeinfo.Flow
field_list, a type of flow.
var Zt_FieldValue typeinfo.Flow
field_value, a type of flow.
var Zt_LiteralValue = typeinfo.Slot{ Name: "literal_value", Markup: map[string]any{ "blockly-color": "MATH_HUE", "comment": "Slot for constant values.", }, }
literal_value, a type of slot.
var Zt_NumValue typeinfo.Flow
num_value, a type of flow.
var Zt_NumValues typeinfo.Flow
num_values, a type of flow.
var Zt_RecordList typeinfo.Flow
record_list, a type of flow.
var Zt_RecordValue typeinfo.Flow
record_value, a type of flow.
var Zt_TextValue typeinfo.Flow
text_value, a type of flow.
var Zt_TextValues typeinfo.Flow
text_values, a type of flow.
Functions ¶
func CustomDecoder ¶
func CustomEncoder ¶
Write literal commands as plain values. ex. BoolValue becomes a bool (true or false) in the output data.
note: TextValues and NumValues of containing a single value and serialized as that single value ( [6]-> 6 ) because, in theory, that can help simply the specification for authors.
func DecodeLiteral ¶
func GetAffinity ¶
func GetAffinity(a LiteralValue) (ret affine.Affinity)
Types ¶
type BoolValue ¶
Specify an explicit true or false.
func (*BoolValue) GetBool ¶
GetBool implements rt.BoolEval; providing the dl with a boolean literal.
func (*BoolValue) GetLiteralValue ¶
type BoolValue_Slice ¶
type BoolValue_Slice []BoolValue
holds a slice of type bool_value
func (*BoolValue_Slice) Repeats ¶
func (op *BoolValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*BoolValue_Slice) TypeInfo ¶
func (*BoolValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type FieldList ¶
type FieldList struct { Fields []FieldValue Markup map[string]any }
A series of values all for the same record. While it can be specified wherever a literal value can, it only has meaning when the record type is known.
func (*FieldList) GetLiteralValue ¶
unimplemented: panics.
type FieldList_Slice ¶
type FieldList_Slice []FieldList
holds a slice of type field_list
func (*FieldList_Slice) Repeats ¶
func (op *FieldList_Slice) Repeats() bool
implements typeinfo.Repeats
func (*FieldList_Slice) TypeInfo ¶
func (*FieldList_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type FieldValue ¶
type FieldValue struct { Field string Value LiteralValue Markup map[string]any }
A fixed value of a record.
type FieldValue_Slice ¶
type FieldValue_Slice []FieldValue
holds a slice of type field_value
func (*FieldValue_Slice) Repeats ¶
func (op *FieldValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*FieldValue_Slice) TypeInfo ¶
func (*FieldValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type LiteralValue_Slot ¶
type LiteralValue_Slot struct{ Value LiteralValue }
holds a single slot.
func (*LiteralValue_Slot) TypeInfo ¶
func (*LiteralValue_Slot) TypeInfo() typeinfo.T
implements typeinfo.Instance for a single slot.
type LiteralValue_Slots ¶
type LiteralValue_Slots []LiteralValue
holds a slice of slots.
func (*LiteralValue_Slots) Repeats ¶
func (op *LiteralValue_Slots) Repeats() bool
implements typeinfo.Repeats
func (*LiteralValue_Slots) TypeInfo ¶
func (*LiteralValue_Slots) TypeInfo() typeinfo.T
implements typeinfo.Instance for a series of slots.
type NumValue ¶
Specify a particular number.
func (*NumValue) GetLiteralValue ¶
func (*NumValue) GetNumber ¶
GetNumber implements rt.NumberEval providing the dl with a number literal.
type NumValue_Slice ¶
type NumValue_Slice []NumValue
holds a slice of type num_value
func (*NumValue_Slice) Repeats ¶
func (op *NumValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*NumValue_Slice) TypeInfo ¶
func (*NumValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type NumValues ¶
Number List: Specify a list of numbers.
func (*NumValues) GetLiteralValue ¶
func (*NumValues) GetNumList ¶
GetNumList implements rt.NumListEval providing the dl with a literal list of numbers.
type NumValues_Slice ¶
type NumValues_Slice []NumValues
holds a slice of type num_values
func (*NumValues_Slice) Repeats ¶
func (op *NumValues_Slice) Repeats() bool
implements typeinfo.Repeats
func (*NumValues_Slice) TypeInfo ¶
func (*NumValues_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RecordCache ¶
type RecordCache struct {
// contains filtered or unexported fields
}
func (*RecordCache) GetRecord ¶
func (rc *RecordCache) GetRecord(kinds rt.Kinds, kind string, fields []FieldValue) (ret rt.Value, err error)
type RecordList ¶
type RecordList struct { Kind string Records []FieldList Cache RecordsCache Markup map[string]any }
Specify a series of records, all of the same kind.
func (*RecordList) GetLiteralValue ¶
func (*RecordList) GetMarkup ¶
func (op *RecordList) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*RecordList) GetRecordList ¶
GetNumList implements rt.RecordListEval providing the dl with a literal list of records.
type RecordList_Slice ¶
type RecordList_Slice []RecordList
holds a slice of type record_list
func (*RecordList_Slice) Repeats ¶
func (op *RecordList_Slice) Repeats() bool
implements typeinfo.Repeats
func (*RecordList_Slice) TypeInfo ¶
func (*RecordList_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RecordValue ¶
type RecordValue struct { Kind string Fields []FieldValue Cache RecordCache Markup map[string]any }
Specify a record composed of literal values.
func (*RecordValue) GetLiteralValue ¶
func (*RecordValue) GetMarkup ¶
func (op *RecordValue) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*RecordValue) GetRecord ¶
GetRecord implements interface rt.RecordEval providing the dl with a structured literal.
func (*RecordValue) TypeInfo ¶
func (*RecordValue) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RecordValue_Slice ¶
type RecordValue_Slice []RecordValue
holds a slice of type record_value
func (*RecordValue_Slice) Repeats ¶
func (op *RecordValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*RecordValue_Slice) TypeInfo ¶
func (*RecordValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type RecordsCache ¶
type RecordsCache struct {
// contains filtered or unexported fields
}
func (*RecordsCache) GetRecords ¶
type TextValue ¶
Specify a small bit of text.
func (*TextValue) GetLiteralValue ¶
type TextValue_Slice ¶
type TextValue_Slice []TextValue
holds a slice of type text_value
func (*TextValue_Slice) Repeats ¶
func (op *TextValue_Slice) Repeats() bool
implements typeinfo.Repeats
func (*TextValue_Slice) TypeInfo ¶
func (*TextValue_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance
type TextValues ¶
Text List: Specifies a set of text values.
func Ts ¶
func Ts(s ...string) *TextValues
func (*TextValues) GetLiteralValue ¶
func (*TextValues) GetMarkup ¶
func (op *TextValues) GetMarkup(ensure bool) map[string]any
implements typeinfo.Markup
func (*TextValues) GetTextList ¶
GetTextList implements rt.TextListEval providing the dl with a literal list of text.
type TextValues_Slice ¶
type TextValues_Slice []TextValues
holds a slice of type text_values
func (*TextValues_Slice) Repeats ¶
func (op *TextValues_Slice) Repeats() bool
implements typeinfo.Repeats
func (*TextValues_Slice) TypeInfo ¶
func (*TextValues_Slice) TypeInfo() typeinfo.T
implements typeinfo.Instance