mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
Add field to keep track of program type
This commit is contained in:
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user