Backus Naur Form (BNF) is a standard notation for expressing syntax as a set of grammar rules. Figure 1 below shows a grammar for assignment with arithmetic operations, e.g. y = (2*x + 5)*x - 7;...


Backus Naur Form (BNF) is a standard notation for expressing syntax as a set of grammar rules. Figure 1 below<br>shows a grammar for assignment with arithmetic operations, e.g. y = (2*x + 5)*x - 7;<br>assignment => ID = expression ;<br>expression => expression + term<br>I expression - term<br>I term<br>term<br>term * factor<br>| term / factor<br>| factor<br>( expression )<br>| ID<br>| NUMBER<br>factor =><br>Figure 1. Grammar<br>(a) Identify and list all the non-terminal symbols in the grammar<br>(b) Identify and list all the terminal symbols in the grammar<br>

Extracted text: Backus Naur Form (BNF) is a standard notation for expressing syntax as a set of grammar rules. Figure 1 below shows a grammar for assignment with arithmetic operations, e.g. y = (2*x + 5)*x - 7; assignment => ID = expression ; expression => expression + term I expression - term I term term term * factor | term / factor | factor ( expression ) | ID | NUMBER factor => Figure 1. Grammar (a) Identify and list all the non-terminal symbols in the grammar (b) Identify and list all the terminal symbols in the grammar

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here