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

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

%option bison noyywrap header-file

%%

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

%%
