asdlGen Reference Manual : Input Syntax : Type Definitions : Type Qualifiers
Previous: Field Labels
Next: Attributes

3.3.5. Type Qualifiers

The type identifier of a field declaration can also be qualified with either a sequence ("*") or option ("?") qualifier. The sequence qualifier is an abbreviation that stands for a sequence or list of that given type, while the option qualifier stands for a type whose value maybe uninitialized. Sequence types are equivalent to the lists or arrays of a fixed type. Option types are equivalent to the option and Maybe types in ML and Haskell or the idiom of a pointer which maybe NULL or contain a valid address or object reference in languages like C or Java. asdlGen provides various different translation schemes for handling option and sequence types in languages that do not have parametric polymorphism. See section sect.invocation for details.


asdlGen Reference Manual : Input Syntax : Type Definitions : Type Qualifiers
Previous: Field Labels
Next: Attributes