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.
>>-keyword--required_item--------------------------------------><
>>-keyword--+---------------+---------------------------------->< '-optional_item-'
If you must choose one of the items, one item of the stack is shown on the main path.
>>-keyword--+-required_choice1-+------------------------------->< '-required_choice2-'
If choosing one of the items is optional, the entire stack is shown below the main path.
>>-keyword--+------------------+------------------------------->< +-optional_choice1-+ '-optional_choice2-'
The item that is the default is shown above the main path.
.-default_item---. >>-keyword--+-alternate_item-+---------------------------------><
.-----------------. V | >>-keyword----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 are shown 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.
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")