8 #include "../lib/sstring.h"
10 #define YYSTYPE sstring *
11 extern YYSTYPE yylval;
14 #include "../lib/stringbuf.h"
16 #define MAX_STR_CONST 512
20 #define addpos(x) lexpos+=x;
21 #define incpos() addpos(1);
36 char bufdata[MAX_STR_CONST];
40 sbinit(&buf, bufdata, sizeof(bufdata));
48 yylval = getsstring(bufdata, 512);
52 sbaddchar(&buf, '\\');
58 sbaddchar(&buf, *yytext);
63 sbinit(&buf, bufdata, sizeof(bufdata));
69 sbaddchar(&buf, '\'');
74 yylval = getsstring(bufdata, 512);
78 sbaddchar(&buf, *yytext);
88 [ \t]+ { addpos(strlen(yytext));
91 ({letter}|{digit}|[#\-\+\.\*])+ { addpos(strlen(yytext));
92 yylval = getsstring(yytext, 512);
112 void ydummyfn(void) {