tengo el siguiente código y da un error " "hello.l", línea 31: EOF prematura" cuando corro el siguiente comando hello.l flexerror EF prematura de archivo flex
%{
#include <stdlib.h>
#include "y.tab.h"
%}
%%
("hi"|"oi")"\n" {return HI; }
("tchau"|"bye")"\n" {return BYE;}
. {yyerror(); }
%%
int main(void)
{
yyparse();
return 0;
}
int yywrap(void)
{
return 0;
}
int yyerror(void)
{
printf("Error\n");
exit(1);
}
¿Me puede decir cómo ejecutar compilar tanto lex.yy. c y y.tab.c archivos en dev-C++? – Waseem