/* Scanner for "C" assignment statements... sort of. */
/* Compile: reflex --bison reflexexample3.lxx */
/* Compile: bison -d flexexample3.yxx */

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

%option bison noyywrap

%%

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

%%
