public void Finish()
{
rfile.Close();
ifile.Close();
if (genlist)
{
lst_wfile.Close();
lst_ofile.Close();
}
}
/* main program */ public static void Main() { try { String[] args = Environment.GetCommandLineArgs(); Io prog = new Io(args); Tok tok = new Tok(prog); Parse p = new Parse(prog, tok); p.program(); prog.Finish(); } catch (Exception e) { Console.WriteLine("Compiler aborting: "+e.ToString()); } }