Lab 4

Write the code generator and interpreter for PL/0. Run the program on fifteen or more sample programs which are correct syntactically. Your test programs should have procedures which use a mixture of local and non local identifiers. Try to have nonlocal variables at more than one level. Your test procedures should be called with parameters that are variables and parameters that are themselves parameters from other procedures. Run at least two programs with nested procedures in which you print the stack after every p-code instruction. (These programs should be short).