GDL Values

A GDL value is a character string that begins with the first non-whitespace character in a GDL attribute that is found after the colon delimiter and typically ends when a linebreak sequence or a construct delimiter is reached.

There are a few GDL contexts when a linebreak sequence or a construct delimiter does not terminate the value. These special contexts include when:

  • Construct delimiter characters occur as part of a comment.

  • Termination characters occur as part of a quoted string.

  • Termination characters occur within a nested context.

  • Termination characters occur within an arbitrary value.

A value can contain zero, one, or more of these special contexts. A single context type can appear multiple times in one value. Any of the preceding special contexts can also appear outside of any other context. Some contexts might appear within another context; these cases are noted in the descriptions of each context. All contexts must be exited before the value can be terminated by either a linebreak sequence or a construct delimiter.

The terminating linebreak sequence or a construct delimiter is not considered part of the value.

Values are optional in a GDL attribute.

Value Macro References might appear anywhere in a GDL value that non-literal whitespace is permitted; these references begin with the equal sign (=). When the equal sign is used in such a context and it is not intended to introduce a Value Macro Reference, the equal sign must be followed by a non-symbol character (such as whitespace). For more information about value macros, see GDL Value Macros.

For more information about GDL contexts, see GDL Contexts.

The following code examples show values that are acceptable to the GDL parser.

*Value: *%  Null Value - only a comment

*Value: "Quoted String"

*Value: "Quoted String with Hex substring: <48 65 78> see?"

*Value: "Hex substring with comment and macro reference <48 *% comment
65 78 =MacroRef > see?"   *% note continuation linebreak was automatically assumed

*Value: tokens (parenthesis context) [followed by square brackets context] "ending in quoted string"

*Value: tokens (parenthesis context {with nested curly braces context})

*Value:  tokens <BeginValue:anything> no special characters or contexts recognized within an arbitrary value context.  " } ) * % < > anything goes, sorry  =MacroRefs not recognized
*Keyword:  looks like a new entry but its still within the Arbitrary Value context.
+  not continuation chars, *% this is not a comment  <EndValue:anything>