From fb6040f0a8cd3ddce85bac3286392a01206f5b55 Mon Sep 17 00:00:00 2001 From: Theophile Ranquet Date: Fri, 7 Dec 2012 11:57:19 +0100 Subject: [PATCH] news: improve the carets example and fix a typo * NEWS: Here. --- NEWS | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 593251a6..a9ef9214 100644 --- a/NEWS +++ b/NEWS @@ -17,8 +17,17 @@ GNU Bison NEWS documentation): input.y:3.20-23: error: ambiguous reference: '$exp' - exp: exp '+' exp { $exp = $1 + $2; }; + exp: exp '+' exp { $exp = $1 + $3; }; ^^^^ + input.y:3.1-3: refers to: $exp at $$ + exp: exp '+' exp { $exp = $1 + $3; }; + ^^^ + input.y:3.6-8: refers to: $exp at $1 + exp: exp '+' exp { $exp = $1 + $3; }; + ^^^ + input.y:3.14-16: refers to: $exp at $3 + exp: exp '+' exp { $exp = $1 + $3; }; + ^^^ The default behaviour for now is still not to display these unless explictly asked with -fall of -fcaret. However, in a later release, it will be made the @@ -28,7 +37,7 @@ GNU Bison NEWS The %define variable api.pure requests a pure (reentrant) parser. However, for historical reasons, using it in a location-tracking Yacc parser resulted - in an yyerror function that did not take a location as a parameter. With this + in a yyerror function that did not take a location as a parameter. With this new value, the user may request a better pure parser, where yyerror does take a location as a parameter (in location-tracking parsers). -- 2.47.2