%option noyywrap %{ #include #include #include "y.tab.h" %} %% [()*+/-] { return *yytext; } [0-9]+ { return NUM; } \n { return 0; } . { fprintf(stderr, "Leksicka greska: Neprepoznat karakter %c\n", *yytext); exit(EXIT_FAILURE); } %%