9 #define YY_DECL int yylex (yyscan_t yyscanner, ttt_token_t *token)
11 #define STRING_BUF_SIZE 8000
18 char string_buf[STRING_BUF_SIZE];
24 token->type = TTT_TOKEN_TYPE_NEWLINE;
29 string_buf_ptr = string_buf;
35 *string_buf_ptr++ = '"';
39 *string_buf_ptr++ = '\\';
46 *string_buf_ptr++ = *s++;
51 *string_buf_ptr = '\0';
52 token->type = TTT_TOKEN_TYPE_STRING;
53 token->u.string = xstrdup (string_buf);
58 [^ \t\r\n\"][^ \t\r\n\"]* {
59 token->type = TTT_TOKEN_TYPE_STRING;
60 token->u.string = xstrdup (yytext);