/* Scanner for "C" assignment statements... sort of. */
/* Compile: reflex --bison-locations reflexexample7.lxx */
/* Compile: bison -d flexexample7.yxx */

%top{
#include "flexexample7.tab.hxx"  /* Generated by bison. */
}

%option bison-locations noyywrap

%%

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

%%
