Example syntax diagram

 


Here is an example syntax diagram that describes the hello command:

Hello Command
 
>>-hello--+----------+--+--------------+-----------------------><
          '-| Name |-'  '-| Greeting |-'
 
Name
 
   .-,----------.
   V       (1)  |
|---- name------+-----------------------------------------------|
 
Greeting
 
|--, how are you?-----------------------------------------------|
 
 

You can code up to three names.

These are all valid versions of the hello command:

hello
hello name
hello name, name
hello name, name, name
hello, how are you?
hello name, how are you?
hello name, name, how are you?
hello name, name, name, how are you?

The space before the name value is significant, and that if you do not code name at all, still code the comma before how are you?.