/*
Commented By: Christopher Lopes
File Name: Main.java
To Create: After the scanner, lcalc.flex, and the parser, ycalc.cup, have been
           created.
                > javac Main.java
To Run: > java Main test.txt
                where test.txt is an test input file for the calculator.
*/

/* Import classes needed.  The class we created for the parser, the standard
   runtime class for java, and an io class.*/
import parser;
import java_cup.runtime.Symbol;
import java.io.*;

class Main {

  static boolean do_debug_parse = false;
  static public void main(String argv[]) {

  /* Start the parser */
  try {
      parser p = new parser(new Lexer(new FileReader(argv[0])));
      Object result = p.parse().value;
 

    } catch (Exception e) {
      /* do cleanup here -- possibly rethrow e */
      } finally {
        /* do close out here */
        }
  }
}

/*  Return to Main for our Calculator  */