%{
    #include <string>
    #include "pii-10.04.tab.hpp"
    extern std::string yylval;
%}
%%
string      return STRING;
reverse     return REVERSE;
print       return PRINT;
"+="        return PJ;
[0-9]+      {yylval = yytext; return NUM; }
[a-zA-Z_0-9]+  {yylval = yytext; return VAR;}
\".*\"      {yylval = yytext+1; yylval.resize(yylval.length()-1); return STR;}
[";()+*=\[\],]   return *yytext;
[ \n\t]
%%
