Professional Documents
Culture Documents
COMPILER CONSTRUCTION
(90 minutes- Open book)
Question 1
a/ Write a program in KPL to read n integers (n 10) into array A , print the input values from last to
first, then print the sum of the elements.
b/ Change yoủ code so that it causes error “Invalid term”. Explain why.
Question 2 .
Note: The functions you are required to build are parts of project Parser used in practice exercise No 2.
You must use the data structures declared in project Parser.