001 /* 002 * Main wrapper 003 * 004 * Developed for "Rethinking CS101", a project of Lynn Andrea Stein's AP Group. 005 * For more information, see <a href="http://www.ai.mit.edu/projects/cs101/">the 006 * CS101 homepage</a> or email <las@ai.mit.edu>. 007 * 008 * Copyright (C) 1999 Massachusetts Institute of Technology. 009 * Please do not redistribute without obtaining permission. 010 */ 011 012 package piglatin; 013 014 /** 015 * The wrapper class. Gets everything started. 016 * 017 * @author Todd C. Parnell <tparnell@ai.mit.edu> 018 * @version $Id: Main.java,v 1.1.1.1 2002/06/05 21:56:35 root Exp $ 019 */ 020 public class Main { 021 022 /** 023 * Just a wrapper to begin the GUI. 024 */ 025 public static void main(String[] args) { 026 if (args.length == 0) { 027 GUI gui = new GUI(); 028 } else if (args.length == 1) { 029 GUI gui = new GUI(args[0]); 030 } else { 031 System.out.println("Usage: piglatin.Main [translator]"); 032 System.exit(0); 033 } 034 } 035 } 036 037 /* 038 * $Log: Main.java,v $ 039 * Revision 1.1.1.1 2002/06/05 21:56:35 root 040 * CS101 comes to Olin finally. 041 * 042 * Revision 1.1 2000/05/07 07:03:14 mharder 043 * Moved .java files into piglatin subdirectory. 044 * 045 * Revision 1.2 1999/03/12 14:04:55 tparnell 046 * Added support to give as command line argument the Translator to use. 047 * 048 * Revision 1.1 1999/03/03 16:58:45 tparnell 049 * Major revision from an old (c. 1996) version of the problem set. It's 050 * now an application and 1.2 compliant. See the README for more details. 051 * 052 */