args = new String[1]; args[0] = "/home/simonc/expr.txt";
	public static void main(String []args)	{		BufferedReader f;		Context context;				/*		 * Parse command line arguments -- these are the files and URLs to read commands from.		 */		if (args.length == 0)		{			/*			 * Start GUI for user to enter commands into.			 */			MapyrusInputFrame m = new MapyrusInputFrame();					}		else if (args.length == 1 && (args[0].equals("-h") || args[0].equals("-help") ||			args[0].equals("-?") || args[0].equals("-v") || args[0].equals("-version")))		{			/*			 * Show usage message and quit.			 */			printUsage();			System.exit(1);		}		else if (args[0].equals("-"))		{			/*			 * Read from standard input.			 */			f = new BufferedReader(new InputStreamReader(System.in));			context = new Context();			processFile(f, context);		}		else if (args[0].equals("server"))		{			int port;						/*			 * Run as a server.			 */			if (args.length == 1)			{				port = DEFAULT_PORT;			}			else			{				port = Integer.parseInt(args[1]);			}		}		else		{			context = new Context();						/*			 * Process each file and URL given as command line argument.			 */			for (int i = 0; i < args.length; i++)			{				/*				 * Try it as a URL.  If that does not work then open it as a file				 */				try				{					URL url = new URL(args[i]);					f = new BufferedReader(new InputStreamReader(url.openStream()));					if (processFile(f, context) == false)					{						System.exit(1);					}				}				catch (MalformedURLException e)				{					try					{						f = new BufferedReader(new FileReader(args[i]));						if (processFile(f, context) == false)						{							System.exit(1);						}					}					catch (FileNotFoundException e2)					{						System.err.println(e2.getMessage());						System.exit(1);					}				}				catch (IOException e)				{					System.err.println(e.getMessage());					System.exit(1);				}			}							}		System.exit(0);	}