Homework Programming Language Processor Class Really Need Help Codes Thank Much Q43828121
Homework from programming language processor class… I reallyneed help with the codes… Thank you very much
Question 2 Answer the following questions to add the following repeat-until statement to PL/O. Production rule statement → repeat statement until condition Action A statement ‘repeat statement until condition’ works as follows. 1. Execute statement. 2. If the value of condition is false, go to the step 1. Otherwise, exit this loop. Question 2-3 To add a token repeat to a set of starting tokens of statement, modify a function isStBeginKey in compile.c and explain the modification in you report. Question 2-4 Modify a function statement in compile.c so that your PL/0′ compiler can output object codes for repeat-until statements. Explain the modificaiton in your report. Show transcribed image text Question 2 Answer the following questions to add the following repeat-until statement to PL/O. Production rule statement → repeat statement until condition Action A statement ‘repeat statement until condition’ works as follows. 1. Execute statement. 2. If the value of condition is false, go to the step 1. Otherwise, exit this loop. Question 2-3 To add a token repeat to a set of starting tokens of statement, modify a function isStBeginKey in compile.c and explain the modification in you report. Question 2-4 Modify a function statement in compile.c so that your PL/0′ compiler can output object codes for repeat-until statements. Explain the modificaiton in your report.
Expert Answer
Answer to Homework from programming language processor class… I really need help with the codes… Thank you very much …
OR