+
+ private static void readSourceFile(State state, String sourcefile) throws Exception {
+ Reader fr = new BufferedReader(new FileReader(sourcefile));
+ Lex.Lexer l = new Lex.Lexer(fr);
+ java_cup.runtime.lr_parser g;
+ g = new Parse.Parser(l);
+ ParseNode p=(ParseNode) g./*debug_*/parse().value;
+ state.addParseNode(p);
+ if (l.numErrors()!=0) {
+ System.out.println("Error parsing Object.java");
+ System.exit(l.numErrors());
+ }
+ }