// PL0Int.java // This program is an interpreter for PL/0. At the conclusion of interpreting // a program, the program's memory store is output. public class PL0Int { public static void main (String args []) throws java.io.IOException { System . out . println ("Source Program"); System . out . println ("--------------"); System . out . println (""); ParserDS pl0 = new ParserDS (); Environment env = new Environment (); SyntaxTree syntaxTree = pl0 . program (env); System . out . println (""); syntaxTree . print ("main program"); env . print ("main program"); System . out . println (""); Interpreter interpreter = new Interpreter (Location . stackFrameSize (), Location . mainProgSize ()); interpreter . m (syntaxTree); System . out . println (""); System . out . println (interpreter . store ()); } }