tests: AT_YYERROR_DEFINE: prepare for list of ints.

* tests/local.at (AT_YYERROR_DEFINE): Don't add quotes, check their
presence to detect char/int types.
* tests/actions.at, tests/conflicts.at, tests/glr-regression.at,
* tests/push.at, tests/regression.at: Adjust.
This commit is contained in:
Akim Demaille
2012-06-28 14:20:17 +02:00
parent 694af10cb7
commit 95361618de
6 changed files with 30 additions and 25 deletions

View File

@@ -1312,7 +1312,7 @@ syntax_error:
/* Induce two syntax error messages (which requires full error
recovery by shifting 3 tokens) in order to detect any loss of the
reallocated buffer. */
]AT_YYLEX_DEFINE([abc])[
]AT_YYLEX_DEFINE(["abc"])[
int
main (void)
{
@@ -1419,7 +1419,7 @@ syntax_error2:
]AT_YYERROR_DEFINE[
/* Induce two syntax error messages (which requires full error
recovery by shifting 3 tokens). */
]AT_YYLEX_DEFINE([abc])[
]AT_YYLEX_DEFINE(["abc"])[
int
main (void)
{
@@ -1569,7 +1569,7 @@ A: /*empty*/ | 'a' ;
%%
]AT_YYERROR_DEFINE[
]AT_YYLEX_DEFINE([$1])[
]AT_YYLEX_DEFINE(["$1"])[
int
main (void)
{