From ba963f33d969e8867f4cd8a7fdb24d54ccf4ce71 Mon Sep 17 00:00:00 2001 From: dmose Date: Sun, 24 Aug 2003 19:26:03 +0000 Subject: [PATCH] Add field to keep track of program type --- processing/app/PdePreprocessor.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/processing/app/PdePreprocessor.java b/processing/app/PdePreprocessor.java index a79d23499..0ee8e8b0e 100644 --- a/processing/app/PdePreprocessor.java +++ b/processing/app/PdePreprocessor.java @@ -62,6 +62,8 @@ public class PdePreprocessor { static final int INTERMEDIATE = 1; static final int ADVANCED = 2; + static int programType = -1; + String tempClass; String tempFilename; String tempClassFilename; @@ -130,7 +132,13 @@ public class PdePreprocessor { // start parsing at the compilationUnit non-terminal // - parser.pdeProgram(); + try { + parser.pdeProgram(); + } catch (Exception e) { + System.err.println("exception: " + e); + } + + System.err.println("programType = " + programType); // get ready to traverse the AST //