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
28 /* new keywords must be added to %token<name> and ident: in record-y.y */
30 [A-Za-z][A-Za-z0-9_]+ { STR IDENT; }
32 [0-9]{0,8} { record_yylval.num= strtoul(yytext,0,10); return NUM; }
33 [0-9]{9} { record_yyerror("number too long"); }
35 [-+:=~/] { record_yylval.name= 0; return yytext[0]; }
37 \#.*\n|\n { record_yylval.name= 0; return NL; }
41 . { record_yyerror("lexically invalid input"); }