Backus-Naur Form (BNF) is one notation technique used for defining the syntax of a programming language.

Question

a) Write down the standard BNF symbols.

b) What is EBNF and why was it defined?

c) What are the EBNF meta-symbols?

d) Distinguish between literals and meta-variables when using BNF and EBNF.

e) Define any THREE of the following using BNF and/or EBNF notation.

i. An integer.

ii. A vowel (from the English language).

iii. An alphabetical letter (from the English language).

iv. A hexadecimal number, terminated with the letter H. v. A Roman number in the range 1 to 10.

Leave an answer

Sorry, you do not have permission to answer to this question .