/* Scanner for "C" assignment statements... sort of. */
/* Compile: reflex --bison --header-file reflexexample3.l */
/* Compile: bison -d -y reflexexample3.y */

%{
#include "y.tab.h"  /* Generated by bison. */
%}

%option bison noyywrap header-file

%%

\d+           { yylval.num = atoi(text());   return NUMBER; }
\w+           { yylval.str = strdup(text()); return STRING; }
"="|";"       { return text()[0]; }
.|\n          {}

%%
