4 import java.io.BufferedReader;
5 import java.io.FileReader;
7 /* Test skeleton for java parser/lexer.
8 * Copyright (C) 1998 C. Scott Ananian <cananian@alumni.princeton.edu>
9 * This is released under the terms of the GPL with NO WARRANTY.
10 * See the file COPYING for more details.
14 public static void main(String args[]) throws Exception {
16 System.out.println("Must input source file");
19 Reader fr = new BufferedReader(new FileReader(args[0]));
20 Lex.Lexer l = new Lex.Lexer(fr);
21 java_cup.runtime.lr_parser g;
22 g = new Parse.Parser(l);
24 System.exit(l.numErrors());