Which among the following is a correct option in format for representing symbol and expression in Backus normal form?

Pham Quỳnh

New member
Which among the following is a correct option in format for representing symbol and expression in Backus normal form?
A. <symbol> ->expression
B. <symbol>::=_expression_
C. <symbol>=<expression>
D. all of the mentioned
 
Answer: B
Explanation: <symbol>::=_expression_ is the correct representation where <symbol> is a non terminal, and expression consist of one or more sequence of symbols, more sequence are separated by |, indicating a choice.
 

Tìm kiếm

Back
Top