Question: Using BNF description, write the grammar rules for this programming language. Declaration statements; (e.g., int x; double x; int array A[1..n-1]; double array A[1..n-1]; char
Using BNF description, write the grammar rules for this programming language.
Declaration statements; (e.g., int x; double x; int array A[1..n-1]; double array A[1..n-1]; char x; )
read and write statement; (Consider only primitive read and write.)
assignment statement;
if-then-else statement and if-then statement; and
while-do statement;
Composition statement; i.e., statement; statement(s);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
