%option noyywrap

%{
#include "y.tab.h"
%}

%%
[a-z0-9_]	return SLOVO;
"("		return LOZ;
")"		return DOZ;
"["		return LUZ;
"]"		return DUZ;
"?"		return UPITNIK;
"*"		return ZVEZDA;
"-"		return CRTICA;
"+"		return PLUS;
"|"		return BAR;

.		printf("Nedozvoljen karakter : %s\n",yytext);
%%
