Question: Use the TINY grammar for your project presentation, answer the following questions: a) Draw the syntax tree for the program: read x; read y; if

Use the TINY grammar for your project presentation, answer the following questions: a) Draw the syntax tree for the program: read x; read y; if x = y then write x; repeat y: = x + 1 until x = y write y (b) What is the first and follow set for program, stmt sequence, simple-exp, and write-stmt (tabulate your answers) (c) Use the TINY machine language, write the code to multiply three integers d) What does LDA 7, 1(0) mean? Use the TINY grammar for your project presentation, answer the following questions: a) Draw the syntax tree for the program: read x; read y; if x = y then write x; repeat y: = x + 1 until x = y write y (b) What is the first and follow set for program, stmt sequence, simple-exp, and write-stmt (tabulate your answers) (c) Use the TINY machine language, write the code to multiply three integers d) What does LDA 7, 1(0) mean
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
