BNF Syntax, Structure and Conventions : BNF Structure And Conventions

BNF Structure And Conventions

BNF grammar follows the following general structure:

nonterminal_symbol => terminal_and or_nonterminal_symbols

Example:

action => action_name
| primitive_event_name
| start (activity_name)
| stop (activity_name)

Symbols are delimited by spaces and thus the underscore is frequently used for longer names.