11. Symbol Meaning
:: = Is defined as
| Indicates choice between elements
<> Non terminal symbol
12. BNF is a text based metalanguage that is
read right to left. This way, syntax can be
represented by text, rather than diagrams
13. ž Invented to avoid the disadvantages of
BNF.
ž Easier to read, and less issues with things
like repetition and optional elements
14. Symbol Meaning
= Is defined as
| Indicates choice between elements
<> Non terminal symbol
{} Encloses elements to be repeated
[] Encloses optional elements
17. BNF EBNF
ž Written as is ž Written as is
ž Dim ž Dim
ž If ž If
ž 0 ž 0
ž 1 ž 1
ž k ž k
18. BNF EBNF
ž Defined as | ž Defined as |
ž Boolen::-T|F ž Boolen=T|F
19. BNF EBNF
ž No
Optional ž [ ]
Elements, so each
option must be ž Integer=[-] {<digit>}
repeated
Integer::- - {<digit>} |
{<digit>}
20. BNF EBNF
ž No repetition ž Indicated by { }
ž Repetition through ž Word={Letter}
recursion ž Repeated zero or more
ž Recursion is repetition times
achieved through a ž If it needs to be repeated
process calling itself one or more times, it is
written as
ž Word=Letter{Letter}
25. ž Construct
an EBNF diagram to describe a
best practice, legal if statement.
ž Should follow the following structure:
ž If condition Then statements Else else
statements