122 |
%% |
%% |
123 |
|
|
124 |
\"[^"]*\" { |
\"[^"]*\" { |
125 |
yylval->sValue = strdup(yytext + 1); |
char* s = strdup(yytext + 1); |
126 |
yylval->sValue[strlen(yylval->sValue) - 1] = '\0'; |
s[strlen(s) - 1] = '\0'; |
127 |
|
yylval->sValue = s; |
128 |
|
yyextra->autoFreeAfterParse(s); |
129 |
return STRING; |
return STRING; |
130 |
} |
} |
131 |
|
|
386 |
|
|
387 |
("$"|"@"|"%"|"~"|"?"){ID} { |
("$"|"@"|"%"|"~"|"?"){ID} { |
388 |
yylval->sValue = strdup(yytext); |
yylval->sValue = strdup(yytext); |
389 |
|
yyextra->autoFreeAfterParse(yylval->sValue); |
390 |
return VARIABLE; |
return VARIABLE; |
391 |
} |
} |
392 |
|
|
393 |
{ID} { |
{ID} { |
394 |
yylval->sValue = strdup(yytext); |
yylval->sValue = strdup(yytext); |
395 |
|
yyextra->autoFreeAfterParse(yylval->sValue); |
396 |
return IDENTIFIER; |
return IDENTIFIER; |
397 |
} |
} |
398 |
|
|