How to run lex file?

Here is my lex file

%% .|\n ECHO; %% 

How to run this program on Windows? How to compile this?

Please help me

+1
lex
Dec 04 2018-11-11T00:
source share
1 answer

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.

+2
Apr 22 2018-12-12T00:
source share
— -



All Articles