tweaked the lexer to always have DEBUG of 0 and updated .tok file logic in runner
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
#include <stdbool.h>
|
||||
#include "typedefs.h"
|
||||
int line_number = 1, column_number = 1;
|
||||
bool DEBUG = true;
|
||||
bool DEBUG = false;
|
||||
%}
|
||||
|
||||
COM ([^*]|\*+[^)*])*
|
||||
@ -70,4 +70,4 @@ SCHAR \\n|\\t|\\\"|[^\"\n\\]
|
||||
\n {line_number++; column_number = 1;}
|
||||
. {column_number++;}
|
||||
|
||||
%%
|
||||
%%
|
||||
|
Reference in New Issue
Block a user