2
#define SKIP_FLEXLEXER_
5
#include "../parser/preinclude.h"
6
#include "../parser/parserbase.h"
9
%option yyclass="Scanner" outfile="yylex.cc"
10
%option c++ 8bit warn noyywrap yylineno
15
[ \t]+ // skip white space
19
*d_semval = Semantic(Semantic::INT, yytext);
23
[a-zA-Z_][a-zA-Z0-9_]* {
24
*d_semval = Semantic(Semantic::IDENTIFIER, yytext);
25
return Parser::IDENTIFIER;