%{
// some C++ code
#include "parseRel.hh"
#include "parseRel.tab.hh"
%}

%option noyywrap

%%
[ \t]+                  /*ignore*/
\n                      /*ignore*/
L[0-9]+                 { yylval.val = atoi(&yytext[1]); return LEVEL; }
[0-9]+                  { yylval.val = atoi(yytext); return NUMBER; }
\<\=                    return LE;
\>\=                    return GE;
\=(\=)?                 return EQ;
[a-zA-Z_][a-zA-Z_0-9]*  {
                           yylval.str_val = new char[yyleng+1];
                           strcpy(yylval.str_val, yytext);
                           return VARIABLE;
                         }
.                        return (int)yytext[0];
%%