tupleElementDefinition

Declares a single named element within a tuple type specifier. Each element has a name (a referential identifier) and a type specifier that constrains the values it may hold.

Examples

String element

Tuple { name String, age Integer }

Interval element

Tuple { period Interval<DateTime>, count Integer }

Nested tuple element

Tuple { info Tuple { name String, active Boolean } }
Railroad Diagram
100%
referentialIdentifier typeSpecifier

scroll to zoom · drag to pan · click green rules or blue tokens to navigate

EBNF

tupleElementDefinition
  : referentialIdentifier typeSpecifier
  ;

Used In