1 %option reentrant noyywrap batch
2 %option bison-bridge bison-locations yylineno
4 %option prefix="moulette_"
10 #include <ozulis/core/assert.hh>
13 #define YY_USER_ACTION \
14 yylloc->first_line = yylineno; \
15 yylloc->last_line = yylineno; \
16 yylloc->first_column = yylloc->last_column; \
17 yylloc->last_column += yyleng;
23 [ \t]+ /* ignore whitespace */;
24 #.*$ /* line comment */
28 [-a-zA-Z_0-9\.](([-a-zA-Z_0-9 \.]+)?[-a-zA-Z_0-9\.])? yylval->string = strdup(yytext); return ID;
30 . return yytext[0]; // error