%option noyywrap
%{
+
#include <stdlib.h>
#include <string.h>
+#ifndef __POSIX_VISIBLE
+#define fileno(x) 0
+#endif
#include "../lib/sstring.h"
[ \t]+ { addpos(strlen(yytext));
return WHITESPACE;
}
-({letter}|{digit})+ { addpos(strlen(yytext));
+({letter}|{digit}|[#\-\+\.\*])+ { addpos(strlen(yytext));
yylval = getsstring(yytext, 512);
return IDENTIFIER;
}
yyterminate();
}
%%
+
+void ydummyfn(void) {
+ yyunput(0, NULL);
+}