Files
bison/tests
Akim Demaille f983d00e77 yacc: restructure and fix yysyntax_error
I would like to offer new ways to build the error message.  As a first
step, let's simplify yysyntax_error whose first loop does two things
at the same time: (i) collect the tokens to be reported in the error
message, and (ii) accumulate their sizes and possibly return
"overflow".  Let's pull (ii) in a second step.

Then test 525 (regression.at:1193: parse.error=verbose overflow)
failed.  This test checks that we correctly report "memory overflow"
when the error message is too large.  However the test is mistaken: it
is triggered in a place where there are five (large) expected tokens,
so anyway we would not display them, so there is no (memory) overflow
here!  Transform this test to (i) check that indeed there is no
overflow, and (ii) create syntax_error3 which does check the intended
behavior, but with four expected tokens.

* data/skeletons/yacc.c (yysyntax_error): First compute the list of
arguments, then compute yysize.
* tests/regression.at (parse.error=verbose overflow): Enhance and fix.
2019-12-31 12:00:04 +01:00
..
2019-02-21 06:46:07 +01:00
2019-12-02 19:34:48 +01:00
2019-11-01 12:04:13 +01:00
2019-10-13 09:22:05 +02:00
2019-10-13 09:22:05 +02:00
2019-11-02 16:40:50 +01:00
2019-04-24 13:21:24 +02:00
2019-06-19 19:15:31 +02:00
2019-09-14 10:09:08 +02:00
2019-10-13 09:22:05 +02:00
2019-02-21 17:46:11 +01:00
2019-04-23 18:29:10 +02:00
2019-02-09 08:23:50 +01:00
2019-09-14 09:55:17 +02:00
2019-11-03 10:32:22 +01:00
2019-11-02 16:40:50 +01:00
2019-11-02 16:40:50 +01:00