tweaked the lexer to always have DEBUG of 0 and updated .tok file logic in runner

This commit is contained in:
Partho Bhattacharya
2025-02-13 18:51:31 -05:00
parent 3125d14942
commit f64a4633f7
16 changed files with 2783 additions and 17 deletions

View File

@ -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++;}
%%
%%