Added ELIF

In addition, make some formatting changes, and add some extra error handling (for when ELIF, ELSE, or ENDC are encountered without a corresponding IF).
This commit is contained in:
YamaArashi
2014-08-23 02:55:52 -07:00
committed by Ben10do
parent 4be92e14e6
commit 5c7db42fc4
4 changed files with 146 additions and 115 deletions

View File

@@ -23,6 +23,7 @@ char **cldefines;
clock_t nStartClock, nEndClock;
SLONG nLineNo;
ULONG nTotalLines, nPass, nPC, nIFDepth, nErrors;
bool skipElif;
extern int yydebug;
@@ -414,6 +415,7 @@ main(int argc, char *argv[])
nLineNo = 1;
nTotalLines = 0;
nIFDepth = 0;
skipElif = true;
nPC = 0;
nPass = 1;
nErrors = 0;
@@ -440,6 +442,7 @@ main(int argc, char *argv[])
nTotalLines = 0;
nLineNo = 1;
nIFDepth = 0;
skipElif = true;
nPC = 0;
nPass = 2;
nErrors = 0;