From a9e72fd9a08676feaaccd3324d12f67d9f3b9bcc Mon Sep 17 00:00:00 2001 From: dmose Date: Wed, 17 Sep 2003 04:21:05 +0000 Subject: [PATCH] Make XML parse tree output be controlled by the property compiler.output_parse_tree rather than by a constant in the source code. --- processing/app/PdePreprocessor.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/processing/app/PdePreprocessor.java b/processing/app/PdePreprocessor.java index d48047d4c..6e936ad5c 100644 --- a/processing/app/PdePreprocessor.java +++ b/processing/app/PdePreprocessor.java @@ -164,12 +164,10 @@ public class PdePreprocessor { writeFooter(stream); stream.close(); - final boolean debug = false; //true; - - // if we're debugging, serialize the parse tree to an XML file. can + // if desired, serialize the parse tree to an XML file. can // be viewed usefully with Mozilla or IE - if (debug) { + if (PdeBase.getBoolean("compiler.output_parse_tree", false)) { stream = new PrintStream(new FileOutputStream("parseTree.xml")); stream.println("");