import java.util.Vector; import java.io.FileReader; class test{ public static Exp res; public static int a = 0; public static void main (String[] arg) { try { FileReader myFile = new FileReader(arg[0]); Lexer myLex = new Lexer(myFile); parser myP = new parser(myLex); try {myP.parse();} catch (Exception e) { System.out.println("parse error"); } } catch (Exception e){ System.out.println("invalid file"); } Print pr = new Print(System.out); pr.prExp(res,10); System.out.println(); } }