Commit Graph

  • 3192f9ece7 Update from Bruno Haible's 2003-04-14 patch to gnulib. Paul Eggert 2003-04-22 03:33:01 +00:00
  • 089ac0f11c * data/glr.c (yyexpandGLRStack) [!YYSTACKEXPANDABLE]: Fix obvious typo that results in uncompilable GLR parsers when both %pure-parser and %locations are used. (trivial change) Paul Eggert 2003-04-21 19:37:40 +00:00
  • 1d2d7eddf7 (yyexpandGLRStack) [!YYSTACKEXPANDABLE]: Fix obvious typo that results in uncompilable GLR parsers when both %pure-parser and %locations are used. (trivial change from Yakov Markovitch <Markovitch@iso.ru>) Paul Eggert 2003-04-21 19:37:09 +00:00
  • 1b8f2fff2a Don't invoke unput from scan-gram.l; it ran into a POSIX-compatibility bug in flex 2.5.31. Paul Eggert 2003-04-18 07:27:15 +00:00
  • 47e7600a21 (Invalid inputs): Remove cascaded diagnostic that is no longer emitted. Paul Eggert 2003-04-18 07:26:46 +00:00
  • aa4180418f Add %option nounput, since we no longer use unput. (unexpected_eof): Renamed from unexpected_end_of_file, for brevity. Do not insert the expected token via unput, as this runs afoul of a POSIX-compatibility bug in flex 2.5.31. All uses changed to BEGIN the parent state, since we no longer insert the expected token via unput. Paul Eggert 2003-04-18 07:26:19 +00:00
  • 5ededac618 Fix regression reported by Werner Lemberg in <http://mail.gnu.org/archive/html/bug-bison/2003-04/msg00026.html>. Paul Eggert 2003-04-18 05:11:25 +00:00
  • 2740f1691f (GNU pic Grammar): New test case, taken from <http://mail.gnu.org/archive/html/bug-bison/2003-04/msg00026.html>. Paul Eggert 2003-04-18 05:10:58 +00:00
  • 0de45ae542 (set_conflicts): Resolve all conflicts, not just the first one. This change is from Paul Hilfinger, and it fixes regression reported by Werner Lemberg in <http://mail.gnu.org/archive/html/bug-bison/2003-04/msg00026.html>. Paul Eggert 2003-04-18 05:07:08 +00:00
  • b8be913233 * doc/Makefile.am (AM_MAKEINFOFLAGS): Don't split the info file. Akim Demaille 2003-03-31 09:46:21 +00:00
  • d423d46080 * src/output.c (prepare_symbols): Avoid trailing spaces in the output. Akim Demaille 2003-03-31 09:17:40 +00:00
  • c7e441b49c * doc/bison.texinfo (Strings are Destroyed): s/losses/loses/. From Paul Hilfinger. Akim Demaille 2003-03-31 07:10:44 +00:00
  • 231897ad21 * m4/error.m4: Do not put under dynamic conditions some code which expansion is under static control. Akim Demaille 2003-03-29 13:50:44 +00:00
  • 22a74fece3 Restore a missing ChangeLog entry. Akim Demaille 2003-03-29 13:30:15 +00:00
  • 5b06606339 * doc/bison.texinfo (How Can I Reset @code{yyparse}): New. Akim Demaille 2003-03-29 13:29:41 +00:00
  • fef4cb511e * .cvsignore: Add configure.lineno. * src/.cvsignore: Add yacc. * tests/.cvsignore: Add testsuite.log. * doc/fdl.texi: Sync with latest FSF version. Akim Demaille 2003-03-29 11:26:46 +00:00
  • 265d1ec403 Regen. Akim Demaille 2003-03-29 11:09:49 +00:00
  • 0eee27e7b7 Update .cvsignore files. Paul Eggert 2003-03-14 01:35:43 +00:00
  • 0eadf43ccc Add testsuite.log Paul Eggert 2003-03-14 01:31:24 +00:00
  • 5fa179f52b Add configure.lineno. Paul Eggert 2003-03-14 01:26:51 +00:00
  • 9986d7a732 Add 'yacc'. Paul Eggert 2003-03-14 01:23:04 +00:00
  • ae5895dd3a Bump serial number. Paul Eggert 2003-03-13 21:21:13 +00:00
  • ab8fe29d0c Sync with latest FSF version. Paul Eggert 2003-03-13 19:34:42 +00:00
  • 537636c7e5 Fix "Bison blows chunks on empty file" bug. Work around SunOS 4.1.4 porting problem with <sys/resource.h>. Don't check for sys/wait.h twice, with two different algorithms. Paul Eggert 2003-03-13 07:13:05 +00:00
  • 379f0ac840 (YY_USER_INIT): Initialize code_start, too. (<INITIAL><<EOF>>, <SC_PRE_CODE><<EOF>>): Set *loc to the scanner cursor, instead of leaving it undefined. This fixes a bug reported by Tim Van Holder in <http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00023.html>. Paul Eggert 2003-03-13 07:07:17 +00:00
  • 4a99c66490 Update copyright. Paul Eggert 2003-03-13 07:05:44 +00:00
  • 0baf7c50ed (Torturing the Scanner): Test the scanner on an empty input file, which was Tim Van Holder's test case. Paul Eggert 2003-03-13 07:03:17 +00:00
  • a93df6bad3 (BISON_PREREQ_TIMEVAR): When checking whether <sys/resource.h> can be included, include sys/time.h and sys/times.h first, if available. This works around the SunOS 4.1.4 porting bug reported by Bruce Becker in <http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00018.html>. Paul Eggert 2003-03-13 00:25:33 +00:00
  • 8012adae7b (BISON_PREREQ_SUBPIPE): Don't AC_CHECK_HEADERS([sys/wait.h]), as this interferes with AC_HEADER_SYS_WAIT. Paul Eggert 2003-03-13 00:01:07 +00:00
  • f61aad9399 Merge changes from gnulib. This was prompted because the CVS snapshot of Bison didn't build on Solaris 7 due to strnlen problems. Paul Eggert 2003-03-12 23:08:11 +00:00
  • 4f8a9f6dba Include <limits.h> unconditionally. We have been assuming at least C89 in the bitset code for some time now. Paul Eggert 2003-03-12 23:01:22 +00:00
  • e13bcfbbbd Sync with gnulib. Paul Eggert 2003-03-10 07:41:31 +00:00
  • 6f7d430291 Propagate from gnulib. Paul Eggert 2003-03-10 07:35:12 +00:00
  • 650aa2cfbf Regen. Akim Demaille 2003-03-03 09:00:12 +00:00
  • d2ffe11637 * ro.po: New. Akim Demaille 2003-03-03 08:59:34 +00:00
  • 052826fdd1 * doc/bison.texinfo (Table of Symbols): Reactivate the documentation for %lex-param, and %parse-param. Akim Demaille 2003-03-02 15:11:43 +00:00
  • c47495657b * data/yacc.c, data/glr.c, data/lal1.cc: Use similar code to generate verbose error messages. Use the number of tokens as an upper bound in yytname, as it cannot be a non terminal. Akim Demaille 2003-03-02 13:39:44 +00:00
  • d5286af19b * tests/regression.at (_AT_DATA_DANCER_Y): Fix the expected error message. Akim Demaille 2003-03-02 13:36:55 +00:00
  • 95b52400d5 Typo. Akim Demaille 2003-03-02 11:27:59 +00:00
  • 22e304a6da Write a test the yycheck overrun reported by Andrew Suffield. * tests/regression.at (_AT_DATA_DANCER_Y, AT_CHECK_DANCER): New. Use them to exercise yycheck overrun. Based on Andrew Suffield's grammar. Akim Demaille 2003-03-02 11:22:19 +00:00
  • 67a25fed4c Create tests/local.at for Bison generic testing macros. * tests/calc.at (AT_CHECK_PUSHDEFS, AT_CHECK_POPDEFS): Move to... * tests/local.at (AT_BISON_OPTION_PUSHDEFS, AT_BISON_OPTION_POPDEFS): This new file. * tests/calc.at (AT_CHECK_CALC): Adjust. * tests/testsuite.at (AT_DATA_GRAMMAR_PROLOGUE, AT_DATA_GRAMMAR) (AT_COMPILE, AT_COMPILE_CXX, AT_PARSER_CHECK): Move to... * tests/local.at: here. (AT_COMPILE_CXX): Tags the tests using it as c++. Ignore the test if CXX is not functional. Akim Demaille 2003-03-02 11:14:07 +00:00
  • 9c2b381f79 Minor improvements to today's scan-gram.l bugfix. Paul Eggert 2003-03-02 06:56:06 +00:00
  • a2bc9dbc7b (code_start): Initialize it to scanner_cursor, not loc->end, since loc->end might contain garbage and this leads to undefined behavior on some platforms. (id_loc, token_start): Use (IF_LINTed) initial values that do not depend on *loc, so that the reader doesn't give the the false impression that *loc is initialized. (<INITIAL>"%%"): Do not bother setting code_start, since its value does not survive the return. Paul Eggert 2003-03-02 06:55:15 +00:00
  • 0433ba88f9 * src/scan-gram.l (code_start): Always initialize it when entering into yylex, as SC_EPILOGUE is activated *before* the corresponding yylex invocation. An alternative would be making it static, but then it starts with the second %%'s beginning, instead of its end. Akim Demaille 2003-03-01 10:55:31 +00:00
  • 6d5aa694aa Regen. Akim Demaille 2003-03-01 08:31:06 +00:00
  • b305ea6918 * lib/mbswidth.c: Include <wchar.h> before "mbswidth.h", to work around a UnixWare 7.1.1 porting bug reported by John Hughes in <http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html>. Paul Eggert 2003-02-28 09:02:12 +00:00
  • 02d5ffac8b Include <wchar.h> before "mbswidth.h", to work around a UnixWare 7.1.1 porting bug reported by John Hughes in <http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html>. Paul Eggert 2003-02-28 09:00:22 +00:00
  • c3d25e01e8 * README: Mention compiler bug in Sun Forte Developer 6 update 2. Remove Sequent/Pyramid discussion (nobody uses them any more). Merge VMS and MS-DOS discussion; these ports may well be dead but let's keep mentioning them for now. Put <> around email addresses. Add copyright notice. Paul Eggert 2003-02-26 21:27:11 +00:00
  • 974075dc6c Mention compiler bug in Sun Forte Developer 6 update 2. Remove Sequent/Pyramid discussion (nobody uses them any more). Merge VMS and MS-DOS discussion; these ports may well be dead but let's keep mentioning them for now. Put <> around email addresses. Add copyright notice. Paul Eggert 2003-02-26 21:26:28 +00:00
  • c267ffbced yylineno -> yylno to avoid collision with flex. Sync depcomp with Automake 1.7.3. Paul Eggert 2003-02-25 07:58:42 +00:00
  • 52f32190aa (yy_reduce_print): yylineno -> yylno. Paul Eggert 2003-02-25 07:57:48 +00:00
  • 9b76b7868e (yy::]b4_parser_class_name[::parse): yylineno -> yylno. Paul Eggert 2003-02-25 07:57:09 +00:00
  • 47ee29cf60 (yy_reduce_print): yylineno -> yylno, to avoid collision with flex use of yylineno. Problem reported by Bruce Lilly in <http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00016.html>. Paul Eggert 2003-02-25 07:56:34 +00:00
  • 1bc9d5f9d4 Sync with Automake 1.7.3. Paul Eggert 2003-02-25 07:25:22 +00:00
  • ba1ecc079b Stick to ASCII for now. Paul Eggert 2003-02-24 21:06:17 +00:00
  • f939fc12fe * data/lalr1.cc: Use temporary variables instead of casts to change integer types. Suggested by Paul Eggert. Akim Demaille 2003-02-21 08:13:37 +00:00
  • 95923bd6a6 * doc/bison.texinfo: Use "location" consistently to refer to @n, to avoid confusions with lalr1.cc's notion of Position. Suggested by Paul Eggert. Akim Demaille 2003-02-21 08:07:57 +00:00
  • 2cdc240eeb * data/lalr1.cc (position.hh): Make sure "columns" never pushes before initial_columns. (location.hh): Use consistent variable names when defining the operator<<. Use "last" so that we subtract from Positions, not from unsigned. Akim Demaille 2003-02-20 14:42:43 +00:00
  • 5d00311619 * data/lalr1.cc (position.hh): New subfile, including the extended and Doxygen'ed documentation of class Position. (location.hh): Use it. Document a` la Doxygen. With the help of Benoît Perrot. Akim Demaille 2003-02-20 13:36:08 +00:00
  • d02b25f99b * tests/calc.at (AT_CHECK_PUSHDEFS, AT_CHECK_POPDEFS): Define AT_YACC_IF. Redefine AT_YYERROR_SEES_LOC_IF using it. (_AT_DATA_CALC_Y): Don't declare yyerror when lalr1.cc, as it is not defined. Don't use the location in yy::Parser::error_ and yy::Parser::print_ when not %locations. Activate more lalr1.cc tests. Akim Demaille 2003-02-20 08:14:27 +00:00
  • 0d1c3a04b7 * data/lalr1.cc: When displaying a line number, be sure to make it an int. Akim Demaille 2003-02-19 14:55:14 +00:00
  • 60a777aa24 * data/lalr1.cc (b4_stack_depth_init, yy::Parser::initdepth_): Remove, useless. (YYABORT, YYACCEPT, YYERROR): New. * tests/calc.at: Renable the lalr1.cc test. Akim Demaille 2003-02-19 14:33:27 +00:00
  • 0b86fc416c * tests/calc.at (AT_CHECK_CALC): Check different scenarios of error recovery, mixing with/without pops and discarding of the lookahead. Exercise YYERROR. Disable the lalr1.cc tests as currently it doesn't support YYERROR. Akim Demaille 2003-02-19 13:40:53 +00:00
  • da99a5dc03 * tests/atlocal.in (LDFLAGS, LIBS): New vars. * tests/testsuite.at (AT_COMPILE): Use them. This fixes the testsuite problem reported by Robert Lentz in <http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00011.html>. Paul Eggert 2003-02-18 05:10:12 +00:00
  • 97c9a05ecd (AT_COMPILE): Use new LDFLAGS, LIBS vars, to avoid testing problems for installations that set these vars at configure-time. Paul Eggert 2003-02-18 05:09:44 +00:00
  • 9d56d2940a (LDFLAGS, LIBS): New vars. Paul Eggert 2003-02-18 05:08:55 +00:00
  • 93b8c255e8 * data/yacc.c (yyerrlab) [YYERROR_VERBOSE]: Avoid subscript error in yycheck. Bug reported by Andrew Suffield in <http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00003.html>. * data/glr.c (yyreportSyntaxError) [YYERROR_VERBOSE]: Likewise. Check for malloc failure, for consistency with yacc.c. (yytname_size): Remove, for consistency with yacc.c. Paul Eggert 2003-02-13 07:15:52 +00:00
  • 93a0df697f (yyreportSyntaxError) [YYERROR_VERBOSE]: Avoid subscript error in yycheck. Bug reported by Andrew Suffield in <http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00003.html>. Check for malloc failure, for consistency with yacc.c. (yytname_size): Remove, for consistency with yacc.c. Paul Eggert 2003-02-13 07:14:29 +00:00
  • 3aa2f55d71 (yyerrlab) [YYERROR_VERBOSE]: Avoid subscript error in yycheck. Bug reported by Andrew Suffield in <http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00003.html>. Paul Eggert 2003-02-13 07:13:57 +00:00
  • 7548fed236 * configure.ac (GXX): Rename as... (CXX): this, to keep the original Autoconf semantics. Require 2.57. * data/lalr1.cc: Fix b4_copyright invocations. If YYDEBUG is not defined, don't depend upon name_ being defined. (location.hh): Include string and iostream. (Position::filename): New member. (Position::Position ()): New. (operator<< (Position)): New. (operator- (Position, int)): New. (Location::first, Location::last): Rename as... (Location::begin, Location::end): these, to mock the conventional iterator names. (operator<< (Location)): New. * tests/atlocal.in (CXX): New. * tests/testsuite.at (AT_COMPILE_CXX): New. * tests/calc.at (_AT_DATA_CALC_Y): Adjust yyerror to report the locations in a more synthetic way. (AT_CHECK_PUSHDEFS): AT_YYERROR_SEES_LOC_IF is positive if lalr1.cc is used. Adjust the C locations to match those from Emacs: first column is column 0. Change all the expected results. Conform to the GCS: simplify the locations when applicable. (LOC, VAL, YYLLOC_FORMAL, YYLLOC_ARG, USE_YYLLOC, LEX_FORMALS) (LEX_ARGS, USE_LEX_ARGS, LEX_PRE_FORMALS, LEX_PRE_ARGS): Replace these CPP macros with the m4 macros new defined by... (AT_CHECK_PUSHDEFS): this, i.e.: (AT_LALR1_CC_IF, AT_PURE_LEX_IF, AT_LOC, AT_VAL, AT_LEX_FORMALS) (AT_LEX_ARGS, AT_USE_LEX_ARGS, AT_LEX_PRE_FORMALSm AT_LEX_PRE_ARGS) New macros. (AT_CHECK_POPDEFS): Undefine them. (AT_CHECK_CALC_LALR1_CC): New. Use it for the first lalr1.cc test. Akim Demaille 2003-02-06 10:04:29 +00:00
  • d5a3fe37a9 Bump 1.875b. Akim Demaille 2003-02-05 09:58:41 +00:00
  • 1d64f0bab6 Regen. Akim Demaille 2003-02-05 09:57:02 +00:00
  • 1d32c92eef Update. Akim Demaille 2003-02-05 09:53:54 +00:00
  • 43a176ef35 * data/lalr1.cc (YYLLOC_DEFAULT): Fix its definition: be based on Location as is defined. Akim Demaille 2003-02-04 21:05:03 +00:00
  • fc049e9caf * data/lalr1.cc: If YYDEBUG is not defined, don't depend upon name_ being defined. Akim Demaille 2003-02-04 20:57:46 +00:00
  • a737b2163c Use more-consistent naming conventions for local vars. Paul Eggert 2003-02-03 15:35:57 +00:00
  • ba24760f05 (start_symbol): Remove unused decl. Paul Eggert 2003-02-03 15:33:19 +00:00
  • 68e93ad549 * src/scan-skel.l: Scan more than one inert character per yylex invocation. Akim Demaille 2003-02-02 10:55:20 +00:00
  • 7aff61d4dc %expect-count violations will be errors again in the future. Paul Eggert 2003-02-01 20:10:45 +00:00
  • ab10c47576 Update version number to 1.875b. Update Autoconf requirement to 2.56. Paul Eggert 2003-02-01 09:02:57 +00:00
  • a2814891a4 Added ms translation. Paul Eggert 2003-02-01 08:43:41 +00:00
  • 1d9d5d7159 po/LINGUAS: Add ms. Paul Eggert 2003-02-01 08:35:07 +00:00
  • f4ca512cc8 Add ms. Paul Eggert 2003-02-01 08:34:33 +00:00
  • 9289898605 Version 1.875a, dated today. Paul Eggert 2003-02-01 08:23:32 +00:00
  • 9e10007658 Regenerate. Paul Eggert 2003-02-01 08:18:42 +00:00
  • 9a2b42a3ff Update copyright date to 2003. Paul Eggert 2003-02-01 08:16:17 +00:00
  • 0435d061f2 * doc/Makefile.am (CLEANFILES): Add bison.fns for distcheck. Akim Demaille 2003-01-30 08:03:10 +00:00
  • 6029a57f53 Modifications to fix GLR bug reported by S. Eken. Paul Hilfinger 2003-01-29 23:39:59 +00:00
  • ede3d3bcbc Rename tests/glr-regr1.at to tests/glr-regression.at. tests/glr-regression.at: Add new regression test for the problems reported by S. Eken with semantic values for embedded rules. Update copyright notice. tests/testsuite.at, tests/Makefile.am: Rename glr-regr1.at to glr-regression.at. Paul Hilfinger 2003-01-29 23:39:11 +00:00
  • f868dc04e4 Changes in response to error report by S. Eken: GLR mode does not handle negative $ indices or $ indices in embedded rules correctly. See <http://mail.gnu.org/archive/html/bug-bison/2003-01/msg00076.html>. Paul Hilfinger 2003-01-29 23:37:15 +00:00
  • 6cee62971e * data/lalr1.cc: Do not use @output_header_name@ unless b4_defines_flag is set. Paul Eggert 2003-01-29 06:31:41 +00:00
  • b61c697827 Do not use @output_header_name@ unless b4_defines_flag is set. This fixes two bugs reported by Tim Van Holder in <http://mail.gnu.org/archive/html/bug-bison/2003-01/msg00071.html> and <http://mail.gnu.org/archive/html/bug-bison/2003-01/msg00073.html>. Paul Eggert 2003-01-29 06:31:02 +00:00
  • b2a836b51e * data/yacc.c (YYERROR): Move code from yyerrlab1 to here, so that we don't need to worry about yyerrlab1 being reported as an "unused label" by non-GCC C compilers. Paul Eggert 2003-01-22 06:39:16 +00:00
  • 8a3eb3c8ba (YYERROR): Move code from yyerrlab1 to here, so that we don't need to worry about yyerrlab1 being reported as an "unused label" by non-GCC C compilers. The downside is that if locations are used then a couple of statements are duplicated each time YYERROR is invoked, but the upside is that the warnings should vanish. (yyerrlab1): Move code to YERROR. (yyerrlab2): Remove. Change uses back to yyerrlab1. This reverts some of the 2002-12-27 change. Paul Eggert 2003-01-22 06:38:32 +00:00
  • 4196b9316c * src/output.c (symbol_printers_output): Fix typo that led to core dump. Paul Eggert 2003-01-17 08:43:31 +00:00
  • 34e1d16097 (symbol_printers_output): Fix typo that led to core dump. Problem reported by Antonio Rus in <http://mail.gnu.org/archive/html/bug-bison/2003-01/msg00058.html>. Paul Eggert 2003-01-17 08:43:08 +00:00
  • 3ae831b413 Quoc Peyrot <chojin@lrde.epita.fr>, Robert Anisko <anisko_r@lrde.epita.fr> * data/lalr1.cc (parse::yyerrlab1): When popping the stack, stop when the stacks contain one element, as the loop would otherwise free the last state, and then use the top state (the one we just popped). This means that the initial elements will not be freed explicitly, as is the case in yacc.c; it is not a problem, as these elements have fake values. Akim Demaille 2003-01-13 15:42:31 +00:00
  • 0692b77351 Regen. Akim Demaille 2003-01-13 15:40:18 +00:00
  • e3aa65c502 %expect-violations are now just warnings, reverting to old behavior. Update copyright year. Paul Eggert 2003-01-13 07:19:17 +00:00
  • 69363a9e4d * NEWS: %expect-violations are now just warnings, reverting to Bison 1.30 and 1.75 behavior. This fixes the GCC 3.2 bootstrapping problem reported by Matthias Klose; see <http://mail.gnu.org/archive/html/bug-bison/2003-01/msg00053.html>. * src/conflicts.c (conflicts_print): Likewise. * tests/conflicts.at (%expect not enough, %expect too much, %expect with reduce conflicts): Likewise. * doc/bison.texinfo (Expect Decl): Document this. Also mention that the warning is enabled if the number of conflicts changes (not necessarily increases). Paul Eggert 2003-01-13 06:41:29 +00:00