Added option to generate header file for yy.lex.c, fixed errors in runner.c, and updated Makefile
This commit is contained in:
@ -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++;}
|
||||
|
||||
%%
|
||||
%%
|
||||
|
||||
|
Reference in New Issue
Block a user