package csc324.driver;

// Driver: A generic command-line interface.  Created by Mary Ellen Foster,
// modified by Paul Gries.

import java.io.*;

public class Driver {
    // Declare all static instance variables here.

    // main: Reads commands and acts on them until the user enters 'q'.
    // ----------------------------------------------------------------
    public static void main( String args[] ) throws IOException {

	// Create the command line input stream.
	BufferedReader in = new BufferedReader( 
	    new InputStreamReader( System.in ), 1 );

	// cmd is the current command.
	char cmd = '\0';

	while( cmd != 'q' ) {

	    // Print a prompt and read the next command.
	    System.out.print( "THE_GAP> " );
	    cmd = in.readLine().charAt( 0 );


	    // One huge, ugly "switch" statement.
	    // Currently only handles one command, quit.
	    switch( cmd ) {
                		// Quit
	    case 'q':
		break;

// Add your new cases here.

	    // Otherwise, I don't understand the command.
	    default:
		System.out.println("Beeble brobble kerble mop?");
		break;
	    }
	}
    }
}
