Hello i was watching a tutorial on youtube. It was the start of tutorial but when i tried to wrote the code and run this flex.l file. The output show unexpected character [a-z] {printf("Single lowercase character\n");} . What should i do with this :(
the youtube link https://www.youtube.com/watch?v=LpVufkH4gog&t=171s time stamp 2:54
%{
/* definitions*/
%}
/*rules*/
%%
[a-z] {printf("Single lowercase character\n");}
. {printf("Not a lowercase character\n");}
\n {return 0;}
%%
yywrap() {}
int main() {
printf("Enter String: ");
yylex();
return 0;
}