index 8e314873b2b7f1172441e295f8d739cc63eea269..e04c059433fbb7584835383ec21476177c417a18 100644 (file)
@@ -39,12 +39,12 @@ TestSpec parseresult; /* result of parsing is left here */
%type <str> opt_setup opt_teardown
%type <str> setup
%type <ptr_list> step_list session_list permutation_list opt_permutation_list
-%type <ptr_list> string_list
+%type <ptr_list> string_literal_list
%type <session> session
%type <step> step
%type <permutation> permutation
-%token <str> sqlblock string
+%token <str> sqlblock string_literal
%token PERMUTATION SESSION SETUP STEP TEARDOWN TEST
%%
;
session:
- SESSION string opt_setup step_list opt_teardown
+ SESSION string_literal opt_setup step_list opt_teardown
{
$$ = malloc(sizeof(Session));
$$->name = 2ドル;
step:
- STEP string sqlblock
+ STEP string_literal sqlblock
{
$$ = malloc(sizeof(Step));
$$->name = 2ドル;
permutation:
- PERMUTATION string_list
+ PERMUTATION string_literal_list
{
$$ = malloc(sizeof(Permutation));
$$->stepnames = (char **) 2ドル.elements;
}
;
-string_list:
- string_list string
+string_literal_list:
+ string_literal_list string_literal
{
$$.elements = realloc(1ドル.elements,
(1ドル.nelements + 1) * sizeof(void *));
$$.elements[1ドル.nelements] = 2ドル;
$$.nelements = 1ドル.nelements + 1;
}
- | string
+ | string_literal
{
$$.nelements = 1;
$$.elements = malloc(sizeof(void *));
index 7cb4b5f80b532d6510e21b68224a194f7d4faaa7..df592369e59d61256986e13d538f10fb566a4d87 100644 (file)
litbuf[litbufpos] = '0円';
yylval.str = strdup(litbuf);
BEGIN(INITIAL);
- return(string);
+ return(string_literal);
}
<qstr>. { addlitchar(yytext[0]); }
<qstr>\n { yyerror("unexpected newline in quoted string"); }