From: Paul Eggert Date: Fri, 8 Nov 2002 05:22:51 +0000 (+0000) Subject: * src/parse-gram.y (CHARACTER): Remove unused token. X-Git-Tag: BISON-1_875~319 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/20ef1ad524cad576a133b7b602c8fd6a94f8eae5 * src/parse-gram.y (CHARACTER): Remove unused token. All uses removed. * src/scan-gram.l: Remove stack option. We no longer use the stack, since the stack was never deeper than 1; instead, use the new auto var c_context to record the stacked value. Remove nounput option. At an unexpected end of file, we now unput the minimal input necessary to end cleanly; this simplifies the code. Avoid unbounded token sizes where this is easy. (unexpected_end_of_file): New function. Use it to systematize the error message on unexpected EOF. (last-string): Now auto, not static. (YY_OBS_FREE): Remove unnecessary do while (0) wrapper. (scanner_last_string_free): Remove; not used. (percent_percent_count): Move decl to just before use. (SC_ESCAPED_CHARACTER): Return ID at unexpected end of file, not the (never otherwised-used) CHARACTER. --- diff --git a/ChangeLog b/ChangeLog index 27a868cb..a446e90f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,27 @@ +2002-11-07 Paul Eggert + + * src/parse-gram.y (CHARACTER): Remove unused token. + All uses removed. + + * src/scan-gram.l: Remove stack option. We no longer use the + stack, since the stack was never deeper than 1; instead, use the + new auto var c_context to record the stacked value. + + Remove nounput option. At an unexpected end of file, we now unput + the minimal input necessary to end cleanly; this simplifies the + code. + + Avoid unbounded token sizes where this is easy. + + (unexpected_end_of_file): New function. + Use it to systematize the error message on unexpected EOF. + (last-string): Now auto, not static. + (YY_OBS_FREE): Remove unnecessary do while (0) wrapper. + (scanner_last_string_free): Remove; not used. + (percent_percent_count): Move decl to just before use. + (SC_ESCAPED_CHARACTER): Return ID at unexpected end of file, + not the (never otherwised-used) CHARACTER. + 2002-11-07 Akim Demaille Let yyerror always receive the msg as last argument, so that @@ -11,11 +35,6 @@ * tests/calc.at (_AT_DATA_CALC_Y): Adjust. * tests/cxx-type.at (_AT_TEST_GLR_CALC): Adjust. -2002-11-07 Paul Eggert - - * src/scan-gram.l (unexpected_end_of_file): New function. - Use it to systematize the error message on unexpected EOF. - 2002-11-06 Akim Demaille #line should have quoted strings.