Use this procedure to compile:
How to compile LEX / YACC files on Windows?
Basically:
flex olex.l gcc lex.yy.c -o olex.exe
And this modified file:
%% .|"\n" { ECHO; } %% int yywrap(void) { return 0; } int main(void) { yylex(); return 0; }
I hope this works for you.
Dr Beco Apr 22 2018-12-12T00: 00Z
source share