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

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

%option bison-locations noyywrap header-file

%%

[[:digit:]]+  { yylval.num = atoi(yytext);   return NUMBER; }
[[:alnum:]]+  { yylval.str = strdup(yytext); return STRING; }
"="|";"       { return yytext[0]; }
.|\n          {}

%%
