Added option to generate header file for yy.lex.c, fixed errors in runner.c, and updated Makefile

This commit is contained in:
Annie
2025-02-12 23:47:12 -05:00
parent 8758763ba0
commit e91eb1815b
4 changed files with 80 additions and 28 deletions

View File

@ -3,6 +3,7 @@
/* definitions */
%option noyywrap
%option header-file="flex.h"
%{
#include "typedefs.h"
int line_number = 1, column_number = 1;
@ -69,4 +70,5 @@ SCHAR \\n|\\t|\\\"|[^\"\n\\]
\n {line_number++; column_number = 1;}
. {column_number++;}
%%
%%