The >>--- symbol indicates the beginning of a command, directive, or statement.
The ---> symbol indicates that the command, directive, or statement syntax is continued on the next line.
The >--- symbol indicates that a command, directive, or statement is continued from the previous line.
The --->< symbol indicates the end of a command, directive, or statement.
Diagrams of syntactical units other than complete commands, directives, or statements start with the >--- symbol and end with the ---> symbol.
>>-statement--required_item------------------------------------><
>>-statement--+---------------+-------------------------------->< '-optional_item-'
If you must choose one of the items, one item of the stack appears on the main path.
>>-statement--+-required_choice1-+----------------------------->< '-required_choice2-'
If choosing one of the items is optional, the entire stack appears below the main path.
>>-statement--+------------------+----------------------------->< +-optional_choice1-+ '-optional_choice2-'
The item that is the default appears above the main path.
.-default_item---. >>-statement--+-alternate_item-+-------------------------------><
.-----------------. V | >>-statement----repeatable_item-+------------------------------><
A repeat arrow above a stack indicates that you can make more than one choice from the stacked items, or repeat a single choice.
Variables appear in italicized lowercase letters (for example, identifier). They represent user-supplied names or values.
The following syntax diagram example shows the syntax for the #pragma comment directive. See Pragma directives for information on the #pragma directive.
1 2 3 4 5 6 9 10
>>--#--pragma--comment--(-------compiler---------------------------)----><
| |
+-----date----------------------------+
| |
+-----timestamp-----------------------+
| |
+-----copyright-----------------------+
| | | |
+--user-------+ +--,-"characters"-+
7 8
The following examples of the #pragma comment directive are syntactically correct according to the diagram shown above:
#pragma comment(date)
#pragma comment(user)
#pragma comment(copyright,"This text will appear in the module")