From 1612bca48d0b2322b2f63deb72a2b7baf43ffb0a Mon Sep 17 00:00:00 2001 From: dmose Date: Tue, 26 Aug 2003 02:55:08 +0000 Subject: [PATCH] Fixed up comments, and removed try/catch block that was preventing fallback to Oro in cases of failure --- app/PdePreprocessor.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/PdePreprocessor.java b/app/PdePreprocessor.java index 1ac651712..5f8f7d65b 100644 --- a/app/PdePreprocessor.java +++ b/app/PdePreprocessor.java @@ -125,16 +125,13 @@ public class PdePreprocessor { // PdeRecognizer parser = new PdeRecognizer(filter); - // XXXdmose comments and stuff + // use our extended AST class + // parser.setASTNodeClass("antlr.ExtendedCommonASTWithHiddenTokens"); // start parsing at the compilationUnit non-terminal // - try { - parser.pdeProgram(); - } catch (Exception e) { - System.err.println("exception: " + e); - } + parser.pdeProgram(); // set up the AST for traversal by PdeEmitter // @@ -163,7 +160,6 @@ public class PdePreprocessor { writeHeader(stream, extendsNormal, exporting, name); emitter.setOut(stream); - // XXXdmose should try block encompass more? emitter.print(rootNode); writeFooter(stream);