1 /* -*- fundamental -*- */
11 %option prefix="record_yy"
12 %option header-file="record-l.h"
15 #define STR record_yylval.name= record_tempzone_strdup(yytext); return
27 /* new keywords must be added to %token<name> and ident: in record-y.y */
29 [A-Za-z][A-Za-z0-9_]+ { STR IDENT; }
31 [0-9]{0,8} { record_yylval.num= strtoul(yytext,0,10); return NUM; }
32 [0-9]{9} { record_yyerror("number too long"); }
34 [-+:=~/] { record_yylval.name= 0; return yytext[0]; }
36 \#.*\n|\n { record_yylval.name= 0; return NL; }
40 . { record_yyerror("lexically invalid input"); }