From fc886f59965507adc3cd443bbd0e967507f09f90 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 --- app/PdePreprocessor.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/PdePreprocessor.java b/app/PdePreprocessor.java index a79d23499..0ee8e8b0e 100644 --- a/app/PdePreprocessor.java +++ b/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 //