public static void main(String [] args)	{
		if (args.length <= 0)	{
			System.err.println("SYNTAX: java "+SyntaxChecker.class.getName()+" file.syntax [file.syntax ...]");
			System.err.println("	Prints out a diagnosis of passed syntax file(s).");
			System.exit(2);
		}
		
		boolean ok = true;
		for (int i = 0; i < args.length; i++)	{
			try	{
				SyntaxChecker checker = new SyntaxChecker(new File(args[i]));
				ok = ok && checker.getDiagnosis();
			}
			catch (Exception e)	{
				ok = false;
				e.printStackTrace();
			}
		}
		
		System.exit(ok ? 0 : 1);
	}