Updated
This commit is contained in:
13
src/runner.c
13
src/runner.c
@ -9,8 +9,19 @@ extern TableNode *addr;
|
||||
extern TableNode *chara;
|
||||
extern TableNode *stri;
|
||||
extern TableNode *boo;
|
||||
extern bool DEBUG;
|
||||
extern char * COLOR_YELLOW;
|
||||
extern char * COLOR_BLUE;
|
||||
extern char * COLOR_WHITE;
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
// if last argument is debug then set to true and ignore it for the rest of this file
|
||||
if (argc > 1 && strcmp(argv[argc - 1], "-debug") == 0) {
|
||||
DEBUG = true;
|
||||
argc--;
|
||||
}
|
||||
|
||||
|
||||
if (argc == 1) {
|
||||
fprintf(stderr, INVALID);
|
||||
return -1;
|
||||
@ -221,4 +232,4 @@ void exit_scope() {
|
||||
return;
|
||||
}
|
||||
cur = cur->Parent_Scope;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user