Question: Consider a language that has INT, FLOAT and CHAR types; and in which you can declare multiple variables in a single statement, separating names by
Consider a language that has INT, FLOAT and CHAR types; and in which you can declare multiple variables in a single statement, separating names by commas: INT A, B, C You can declare any name as a one-dimensional array: FLOAT A, B[40] You may use non-terminals {D,VL,TY} - declaration, variable list, type and terminals {id, num, ",", INT, FLOAT, CHAR}. Write a grammar for D. Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
