Question: 2) You're thinking about designing a new language. Suppose that your new language has only the three variables a, b, and c, all of type
2) You're thinking about designing a new language. Suppose that your new language has only the three variables a, b, and c, all of type int. a) Give an EBNF grammar for variable declarations that does not allow redeclaration of variables. b) How does adding one more variable impact the number of productions, be specific? c) In your language you would like to use both dynamic scoping and static typing. State whether this is reasonable and give a brief explanation for your answer. 2) You're thinking about designing a new language. Suppose that your new language has only the three variables a, b, and c, all of type int. a) Give an EBNF grammar for variable declarations that does not allow redeclaration of variables. b) How does adding one more variable impact the number of productions, be specific? c) In your language you would like to use both dynamic scoping and static typing. State whether this is reasonable and give a brief explanation for your
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
