Tapestry
Source Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Literal

Supply constant values to runtime evaluations. ( ie. a specific number when a [NumEval] is required. )

Tell files support "shortcuts" which turn primitive values into literal commands. For instance, the number '5' in a .tell file is automatically transformed into the command "Num value: 5" whenever that's needed.

Definitions:

Slots:

Commands:

Commands

Specify an explicit true or false.

Slots:

Terms:

value: Bool

The true or false value.

The name and value of a field used for initializing a literal record.

Terms:

Field: Text

The name of a field in a record to initialize. New field names cannot be added to records at runtime; the field names must be part of the original declaration of the kind.

value: LiteralValue

The literal value of the field. The type of value must match the original declaration of the field. ( ex. If the field was declared as a number, only a number can be used to initialize it. )

A series of values used to build a record.

Slots:

Terms:

list: FieldValue repeats

A set of literal values for the fields of the record. Any fields of the record which are not specified here, are "zero initialized."

Specify a particular number.

Slots:

Terms:

value: Num

A literal number.

Specify a list of literal numbers.

Slots:

Terms:

values: Num repeats

Zero or more literal numbers.

Specify a record composed of literal values.

Slots:

Terms:

Record: Text

The kind of the record being constructed. All kinds must be pre-declared ( ex. via [DefineKind] or via jess. )

value: FieldValue repeats

A set of literal values for the fields of the record. Any fields of the record which are not specified here, are "zero initialized."

Specify a series of records, all of the same kind.

Slots:

Terms:

Record: Text

The kind of the records being constructed. All of the records in the list must be of the same kind. All kinds must be pre-declared ( ex. via [DefineKind] or via jess. )

values: FieldList repeats

Zero or more record literals.

Specify some constant text.

Slots:

Terms:

kind: optional Text

Optionally, when the text represents the name of an (existing) object, the kind of the object in question.

value: Text

Some literal text.

Specify a list of literal text values.

Slots:

Terms:

kind: optional Text

Optionally, when the text represents the names of (existing) objects, the kind of the objects in question.

values: Text repeats

Zero or more text literals.