Question: (f) (20 marks) Consider the following sequence of a program written in an unknown pro- gramming language: var i,j,k: int128; m:uint32; 1:int64; ca, fb: float;

(f) (20 marks) Consider the following sequence of a program written in an unknown pro- gramming language: var i,j,k: int128; m:uint32; 1:int64; ca, fb: float; a,d,e:long double; Construct a context-free grammar (in BNF/EBNF format) such that the above sequence of program can be generated as a variable declaration. (f) (20 marks) Consider the following sequence of a program written in an unknown pro- gramming language: var i,j,k: int128; m:uint32; 1:int64; ca, fb: float; a,d,e:long double; Construct a context-free grammar (in BNF/EBNF format) such that the above sequence of program can be generated as a variable declaration
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
