4 #include "../lib/sstring.h"
6 #define YYSTYPE sstring *
12 #include "../lib/stringbuf.h"
14 #define MAX_STR_CONST 512
17 static void yyunput (int c,char *buf_ptr);
18 void newsearch_parser_dummy(void) {
22 int fileno(void *arg) {
34 char bufdata[MAX_STR_CONST];
38 sbinit(&buf, bufdata, sizeof(bufdata));
46 yylval = getsstring(bufdata, 512);
49 \\\\ { sbaddchar(&buf, '\\'); }
50 \\\" { sbaddchar(&buf, '"'); }
51 [^\\] { sbaddchar(&buf, *yytext); }
54 "(" { return LPAREN; }
55 ")" { return RPAREN; }
56 [ \t]+ { return WHITESPACE; }
58 yylval = getsstring(yytext, 512);