Question: Q.10. (20 points) The following program is processes by an Interpreter: Program Number of parse tables 10 A=0 20 FOR I=1 TO 2 30 FOR

Q.10. (20 points) The following program is processes by an Interpreter: Program Number of parse tables 10 A=0 20 FOR I=1 TO 2 30 FOR J=TO 3 40 CALL 100 50 NEXT J 60 NEXT I 70 END 100 A=A+5 110 RETURN a. Write the contents of the Text Buffer and the Statement Descriptor Table. Text Buffer + descr. no. SDT Line no. Text buffer offset Next descr. b. In the above table, write the number of parse tables generated for each statement during the interpretation of the program? What is the total number of parse tables? Assume that FOR J-1 TO 3 means that the loop will be repeated for J=1,2,3. c. Draw the parse table for the statement 100 A=A+5. d. Draw the LCTs and show the contents of LRS at each step. Explain. LCT LCT LCT LCT LCT LRS SRS
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
