mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
Fixed up comments, and removed try/catch block that was preventing fallback to Oro in cases of failure
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user