Add field to keep track of program type

This commit is contained in:
dmose
2003-08-24 19:26:03 +00:00
parent 5e89144606
commit fc886f5996

View File

@@ -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
//