Files
bison/data/skeletons
Akim Demaille d441a34791 multistart: also give access to yynerrs
This is something that has always bothered me: with pure parsers (and
they all should be) the user does not have an (easy) access to yynerrs
at the end of the parse.  In the case of error recovery, that's the
only direct means to know if there were errors.  The usual approach
being having the user maintain a counter incremented each time yyerror
is called.

So here, also capture yynerrs in the return value of the start-symbol
parsing functions.

* data/skeletons/yacc.c (yy_parse_impl_t): New.
(yy_parse_impl): Use it.
(b4_accept): Fill it.
* examples/c/lexcalc/parse.y, examples/c/lexcalc/scan.l: No longer
pass nerrs as lex- and parse-param, just use the resulting yynerrs.
bistromathic and reccalc both demonstrate %param.
2020-09-27 11:58:28 +02:00
..
2020-05-21 20:14:59 +02:00
2020-01-10 19:16:23 +01:00
2020-09-19 08:31:49 +02:00
2020-01-10 19:16:23 +01:00
2020-08-30 10:45:21 +02:00
2020-01-10 19:16:23 +01:00
2020-09-26 18:33:48 +02:00
2020-09-19 17:50:28 +02:00
2020-09-26 14:33:09 +02:00
2020-01-10 19:16:23 +01:00
2020-09-19 08:31:49 +02:00
2020-04-13 16:49:54 +02:00
2020-09-19 08:31:49 +02:00
2020-09-13 13:47:25 +02:00
2020-09-27 11:58:28 +02:00