options { JAVA_UNICODE_ESCAPE = true; } PARSER_BEGIN(Parser) import edu.du.cs.comp3351.p2.PrettyPrinter; public class Parser { public static void main(String args[]){ Parser parser = new Parser(System.in); try { CompilationUnit root = parser.CompilationUnit(); new PrettyPrinter().visit(root); } catch (ParseException e) { System.err.println("Parse error."); // for submission // System.err.println("Parse error: " + e); // for debugging } catch (TokenMgrError tme) { System.err.println("Parse error."); // for submission // System.err.println("Parse error: " + tme); // for debugging } } } PARSER_END(Parser) /* WHITESPACE */ SKIP : { " " | "\t" | "\n" | "\r" | "\f" } /* 3351: add regular expressions for tokens here */ void CompilationUnit() : {} { /* 3351: add main expression of language here (and insert rules for language below) */ }