public static Syntax toSyntax(Object syntaxInput)
		throws Exception
	{
		Syntax syntax;
		if (syntaxInput instanceof Syntax)
			syntax = (Syntax) syntaxInput;
		else
		if (syntaxInput instanceof String[][])
			syntax = new Syntax((String[][]) syntaxInput);
		else
		if (syntaxInput instanceof List)
			syntax = new Syntax((List)syntaxInput);
		else
			syntax = new SyntaxBuilder(syntaxInput).getSyntax();
			
		syntax.resolveSingulars();
		return syntax;
	}