Commit Graph

  • 72f000b088 * NEWS: Bison-generated C parsers no longer quote literal strings associated with tokens. * src/output.c (prepare_symbols): Don't escape strings, since users don't want to see C escapes. * tests/calc.at (AT_CHECK_CALC): Adjust to lack of quotes in diagnostics. * tests/regression.at (Token definitions, Web2c Actions): Likewise. Paul Eggert 2005-04-17 08:07:15 +00:00
  • 1094323fe4 * tests/torture.at (AT_INCREASE_DATA_SIZE): Skip the test if the data size is known to be too small and we can't increase it. Paul Eggert 2005-04-16 08:11:52 +00:00
  • f79b4f5ce1 (AT_INCREASE_DATA_SIZE): Skip the test if the data size is known to be too small and we can't increase it. Paul Eggert 2005-04-16 08:11:33 +00:00
  • 2ce37586de Regenerate. Paul Eggert 2005-04-16 06:34:20 +00:00
  • ca407bdf9d * src/parse-gram.y: Include quotearg.h. (string_as_id): Quote $1 before using it as a key, since the lexer no longer quotes it for us. (string_content): Don't strip quotes, since lexer no longer quotes it for us. * src/scan-gram.l: Include quotearg.h. ("\""): Omit quote. ("'"<SC_ESCAPED_CHARACTER>): Quote symbol before using it as a key, since the rest of the lexer doesn't quote it. * src/symtab.c (symbol_get): Don't quote symbol; caller does it now. * tests/regression.at (Token definitions): Check for backslashes in token strings. Paul Eggert 2005-04-16 06:32:51 +00:00
  • 506ffb1f74 (YYSTACK_ALLOC_MAXIMUM): New macro. (YYSIZE_T): Define to unsigned long int when using an older compiler. (yyparse): Revamp code to generate long syntax error message, to make it easier to translate, and to avoid problems with arithmetic overflow. Change "virtual memory" to "memory" in diagnostic, since we don't know whether the memory is virtual. Paul Eggert 2005-04-16 06:25:03 +00:00
  • ffc9da3a52 Regenerate. Paul Eggert 2005-04-14 00:09:11 +00:00
  • 1ce590705a * NEWS: Bison-generated C parsers now use the _ macro to translate strings. * data/yacc.c (_) [!defined _]: New macro. All English strings wrapped inside this macro. * doc/bison.texinfo (Bison Parser): Document _. * po/POTFILES.in: Include src/parse-gram.c, since it now includes translateable strings that parse-gram.y doesn't. Paul Eggert 2005-04-14 00:08:56 +00:00
  • a749a69501 Fix aliases bug reported by Tim Van Holder. Paul Eggert 2005-04-12 22:38:43 +00:00
  • e8fd72d5bb (symbol_make_alias): Call symbol_type_set, reverting the 2004-10-11 change to this function. (symbol_check_alias_consistency): Don't call symbol_type_set if the type name is already correct. Paul Eggert 2005-04-12 22:38:20 +00:00
  • e59adf8f04 (Typed symbol aliases): New test. Paul Eggert 2005-04-12 22:35:53 +00:00
  • 8fb1053bfe * tests/regression.at (Token definitions): Don't use a token named c. Paul Eggert 2005-03-26 01:13:13 +00:00
  • 4f136612d9 (Token definitions): Don't use a token named c, as that generates a "#define c ..." that runs afoul of buggy stdlib.h that uses the identifier c as a member of struct drand48_data. Paul Eggert 2005-03-26 01:12:59 +00:00
  • ff498c4aed * bootstrap: Change translation URL. Paul Eggert 2005-03-21 22:36:41 +00:00
  • 65211d70bc * tests/local.at (AT_COMPILE, AT_COMPILE_CXX): Don't put options after operands; POSIX says this isn't portable for the c99 command. Paul Eggert 2005-03-21 06:58:31 +00:00
  • 72d848c21d (AT_COMPILE, AT_COMPILE_CXX): Don't put options after operands; POSIX says this isn't portable for the c99 command. Paul Eggert 2005-03-21 06:58:11 +00:00
  • 9577fb1f47 * tests/glr-regression.at (glr-regr2a.y): Try to dump core immediately if a data overrun has occurred. Paul Eggert 2005-03-18 20:57:37 +00:00
  • f508a6a0d6 (glr-regr2a.y): Try to dump core immediately if a data overrun has occurred; this may help us track down what may be a spurious failure on MacOS. Paul Eggert 2005-03-18 20:57:19 +00:00
  • a2599d0fc2 Respond to problems reported by twlevo@xs4all.nl. Paul Eggert 2005-03-17 23:42:57 +00:00
  • 727e8b0bde Use "trap - 0" rather than the unportable "trap 0". Paul Eggert 2005-03-17 23:41:38 +00:00
  • 4b3017faf2 Regenerate. Paul Eggert 2005-03-17 19:22:00 +00:00
  • 78b178f716 * src/vcg.h: Comment fix. * src/vcg_defaults.h: Parenthesize macro bodies to make them safe. (G_CMAX): Change to -1 instead of INT_MAX. Paul Eggert 2005-03-17 19:20:15 +00:00
  • baf073c6c5 (yyparse): Omit spaces before #line. Problem reported by twlevo@xs4all.nl. Paul Eggert 2005-03-17 19:19:44 +00:00
  • 7296e729ce * src/tables.c (state_number_to_vector_number): Put it inside an "#if 0". Paul Eggert 2005-03-15 23:53:47 +00:00
  • 7cf96b1a9e (state_number_to_vector_number): Put it inside an "#if 0", since it's not currently used. Paul Eggert 2005-03-15 23:53:27 +00:00
  • 05ac60f348 * src/output.c (escaped_output): Renamed from escaped_file_name_output, since we now use it for symbol tags as well. All uses changed. (symbol_destructors_output, symbol_printers_output): Escape symbol tags too. Problem reported by Matyas Forstner in <http://lists.gnu.org/archive/html/bug-bison/2005-03/msg00009.html>. Paul Eggert 2005-03-07 06:41:39 +00:00
  • 080e734812 (output_edge): Don't quote linestyle arg. Paul Eggert 2005-03-07 06:35:31 +00:00
  • 7eb453acd5 * doc/bison.texinfo (Semantic Tokens): Fix scoping problem in example, reported by Derek M Jones. Paul Eggert 2005-03-01 00:41:58 +00:00
  • 3a4f411faa (Semantic Tokens): Fix scoping problem in example, reported by Derek M Jones. Also, make the example even more outrageous, to better illustrate how bad the problem is. Paul Eggert 2005-03-01 00:41:33 +00:00
  • 4c04c52a9d * doc/bison.texinfo (Mfcalc Symtab): Correct the prototype for putsym. Paul Eggert 2005-02-24 17:24:23 +00:00
  • a730d142be (Mfcalc Symtab): Correct the prototype for putsym. Paul Eggert 2005-02-24 17:23:57 +00:00
  • a61e1620e7 * doc/bison.texinfo: minor typo fixes Paul Eggert 2005-02-23 09:15:27 +00:00
  • e4f85c39b2 (Language and Grammar): some -> same (Epilogue): int he -> in the Paul Eggert 2005-02-23 09:15:09 +00:00
  • 9ec93868c1 Fix $ in test names. Paul Eggert 2005-02-08 00:37:43 +00:00
  • d46c3fc694 Renamed from "Invalid \$n", to work around an Autoconf bug with dollar signs in test names. Paul Eggert 2005-02-07 23:14:55 +00:00
  • d6d67dbdcb (Improper handling of embedded actions and dollar(-N) in GLR parsers): Renamed from "Improper handling of embedded actions and $-N in GLR parsers", work around an Autoconf bug with dollar signs in test names. Paul Eggert 2005-02-07 23:14:22 +00:00
  • 73ce7e7e63 * src/vcg.c (output_graph): G_VIEW -> normal_view. Paul Eggert 2005-01-28 22:07:09 +00:00
  • f8b30d02ec (output_graph): G_VIEW -> normal_view in case someone wants to redefine G_VIEW. Paul Eggert 2005-01-28 22:06:55 +00:00
  • 2e72b98ed8 * src/vcg.c (get_view_str): Remove case for normal_view. Paul Eggert 2005-01-27 22:03:21 +00:00
  • a8999f947d (get_view_str): Remove case for normal_view. Paul Eggert 2005-01-27 22:03:07 +00:00
  • ccf830a458 * configure.ac (O0CFLAGS, O0CXXFLAGS): Fix quoting bug. Paul Eggert 2005-01-24 23:48:11 +00:00
  • 9b9642fca4 (O0CFLAGS, O0CXXFLAGS): Fix quoting bug. Paul Eggert 2005-01-24 23:47:49 +00:00
  • e0d634e5c3 * doc/bison.texinfo: Change @dircategory from "GNU programming tools" to "Software development". Paul Eggert 2005-01-24 23:26:33 +00:00
  • e62f1a8991 Change @dircategory from "GNU programming tools" to "Software development". Paul Eggert 2005-01-24 23:26:17 +00:00
  • 7bbc8cb035 * tests/c++.at (AT_CHECK_DOXYGEN): Don't use options after operands. Paul Eggert 2005-01-23 08:38:33 +00:00
  • 38989c080e (AT_CHECK_DOXYGEN): Don't use options after operands. Paul Eggert 2005-01-23 08:37:35 +00:00
  • b4fb989f02 Regenerate. Paul Eggert 2005-01-21 19:29:25 +00:00
  • 08b770bc1b * data/yacc.c (YYCOPY, yystpcpy, yyparse): Remove "register". Paul Eggert 2005-01-21 19:12:51 +00:00
  • cb530ce9e2 (YYCOPY, yystpcpy, yyparse): Remove "register". Paul Eggert 2005-01-21 19:12:32 +00:00
  • e105489549 Regenerate. Paul Eggert 2005-01-17 09:35:41 +00:00
  • 95f22ad2a7 * data/glr.c (yyuserAction): Add "default: break;" case to pacify gcc -Wswitch-default. * data/lalr1.cc (yy::]b4_parser_class_name[::parse): Likewise. * data/yacc.c (yyparse): Likewise. Paul Eggert 2005-01-17 09:33:57 +00:00
  • d229d15c76 * src/system.h (OUTPUT_EXT, TAB_EXT): Define only if not defined already. Let config.h define any nonstandard values. Paul Eggert 2005-01-13 00:13:37 +00:00
  • deb63d8117 (OUTPUT_EXT, TAB_EXT): Define only if not defined already. Let config.h define any nonstandard values. Paul Eggert 2005-01-13 00:13:21 +00:00
  • ecadd90f94 * tests/calc.at (_AT_DATA_CALC_Y): Use alarm (100), not alarm (10). Paul Eggert 2005-01-10 18:22:30 +00:00
  • 419ab1055e (_AT_DATA_CALC_Y): Use alarm (100), not alarm (10). Paul Eggert 2005-01-10 18:22:11 +00:00
  • 213744b51e * data/yacc.c (yyparse): Pacify non-GCC compilers about yyerrorlab being defined and not used. * data/lalr1.cc (yyparse): Likewise. Use "if (false)" rather than "if (0)". Paul Eggert 2005-01-08 05:22:36 +00:00
  • b47217154a (yyparse): Pacify non-GCC compilers about yyerrorlab being defined and not used. Use "if (false)" rather than "if (0)". Paul Eggert 2005-01-08 05:22:19 +00:00
  • c7a65b99a6 (yyparse): Pacify non-GCC compilers about yyerrorlab being defined and not used. Paul Eggert 2005-01-08 05:21:46 +00:00
  • 249d3236d0 TODO: Mention that we should allow NUL bytes in tokens. Paul Eggert 2005-01-05 21:35:46 +00:00
  • d521d95a3d Mention that we should support NUL bytes in tokens. Paul Eggert 2005-01-05 21:35:08 +00:00
  • 987cc1fb28 * src/scan-skel.l (<<EOF>>): Don't close standard output. Paul Eggert 2005-01-03 07:52:46 +00:00
  • 7ec5ab2e48 (<<EOF>>): Don't close standard output. Problem reported by Hans Aberg. Paul Eggert 2005-01-03 07:52:31 +00:00
  • 08fe02d9fc Fix bug when stdout is closed. Update copyright to 2005. Paul Eggert 2005-01-01 09:28:00 +00:00
  • 6201a1a70f (version): Happy new year; update overall program copyright date from 2004 to 2005. Paul Eggert 2005-01-01 09:27:38 +00:00
  • f1bbfccee2 (AT_CHECK_OUTPUT): New arg SHELLIO. (Output file names.): Add a test for the case when standard output is closed. Paul Eggert 2005-01-01 09:23:41 +00:00
  • 1821246647 ("@output ".*\n): Don't close standard output. Paul Eggert 2005-01-01 09:23:16 +00:00
  • 010c0266ef * doc/bison.texinfo (@copying): Update FDL version number to 1.2, to fix an oversight in the Bison 2.0 manual. Paul Eggert 2004-12-26 07:26:32 +00:00
  • 592fde9564 Update FDL license revision to 1.2. Paul Eggert 2004-12-26 07:25:05 +00:00
  • 508a43be8c Bump version number to 2.0a. Paul Eggert 2004-12-26 06:50:35 +00:00
  • 3a4734aa97 Fix changelog entry for configure.ac. v2.0 Paul Eggert 2004-12-26 06:22:17 +00:00
  • c935d93471 * tests/torture.at (Exploding the Stack Size with Alloca): Set YYSTACK_USE_ALLOCA to 1 if __GNUC__ or alloca are defined; otherwise, we're not testing alloca. Unfortunately there's no simple way to consult HAVE_ALLOCA here. Paul Eggert 2004-12-26 06:13:31 +00:00
  • 577d7c33df (Exploding the Stack Size with Alloca): Set YYSTACK_USE_ALLOCA to 1 if __GNUC__ or alloca are defined; otherwise, we're not testing alloca. Unfortunately there's no simple way to consult HAVE_ALLOCA here. Paul Eggert 2004-12-26 06:12:18 +00:00
  • da436e4383 Regenerate. Paul Eggert 2004-12-26 05:51:10 +00:00
  • da12206a7c Version 2.0. Paul Eggert 2004-12-26 05:50:28 +00:00
  • 82de6b0dde Reformat news for version 2.0. Paul Eggert 2004-12-26 05:49:52 +00:00
  • 6c7ffa8380 (AC_INIT): Bump version to 2.0. Paul Eggert 2004-12-26 05:49:16 +00:00
  • 895789c673 (yydestruct_): Pacify unused variable warning for yymsg, too. Paul Eggert 2004-12-26 05:42:27 +00:00
  • 55a91a8242 (new_itemsets): Use memset rather than zeroing by hand. This avoids a warning about comparing int to size_t when GCC warnings are enabled. Paul Eggert 2004-12-26 05:26:30 +00:00
  • d7e14fc000 * NEWS: Bison-generated parsers no longer default to using the alloca function (when available) to extend the parser stack, due to widespread problems in unchecked stack-overflow detection. * data/glr.c (YYMAXDEPTH): Remove undef when zero. It's the user's responsibility to set it to a positive value. This lets the user specify a value that is not a preprocessor constant. * data/yacc.c (YYMAXDEPTH): Likewise. (YYSTACK_ALLOC): Define only if YYSTACK_USE_ALLOCA is nonzero. * doc/bison.texinfo (Stack Overflow): YYMAXDEPTH no longer needs to be a compile-time constant. However, explain the constraints on it. Also, explain the constraints on YYINITDEPTH. (Table of Symbols): Explain that alloca is no longer the default. Explain the user's responsibility if they define YYSTACK_USE_ALLOCA to 1. Paul Eggert 2004-12-22 21:19:47 +00:00
  • 0a2c51373a * doc/bison.texinfo (Location Default Action): Mention that n must be zero when k is. Paul Eggert 2004-12-22 18:28:26 +00:00
  • f28ac696ee (Location Default Action): Mention that n must be zero when k is zero. Paul Eggert 2004-12-22 18:26:37 +00:00
  • e019c24779 * data/lalr1.cc (parser::token_number_type, parser::rhs_number_type) (parser::state_type, parser::semantic_type, parser::location_type): Private, not public. (parser::parse): Return ints, not bool. Returning a bool introduces a problem: 0 corresponds to false, and it seems weird to return false on success. Returning true changes the conventions for yyparse. Alternatively we could return void and send an exception. There is no clear consensus (yet?). (state_stack, semantic_stack, location_stack): Rename as... (state_stack_type, semantic_stack_type, location_stack_type): these. Private, not public. * tests/c++.at: New. * tests/testsuite.at, tests/Makefile.am: Adjust. Akim Demaille 2004-12-22 10:06:15 +00:00
  • 72731bb70b * data/lalr1.cc (parser::parse): Return a bool instead of an int. Akim Demaille 2004-12-21 12:49:39 +00:00
  • d390b02b8e Don't impose std::string for filenames. * data/lalr1.cc (b4_filename_type): New. (position::filename): Use it. (parser.hh): Move the inclusion of stack.hh and location.hh below the user code, so that needed headers for the filename type can be included first. Forward declare them before the user code. * tests/Makefile.am (check-local, installcheck-local): Pass TESTSUITEFLAGS to the TESTSUITE. Akim Demaille 2004-12-21 12:26:56 +00:00
  • 9a0d8becd8 Don't impose std::string for filenames. * data/lalr1.cc (b4_filename_type): New. (position::filename): Use it. (parser.hh): Move the inclusion of stack.hh and location.hh below the user code, so that needed headers for the filename type can be included first. Akim Demaille 2004-12-21 12:03:47 +00:00
  • 99880de508 Use more STL like names: my_class instead of MyClass. * data/lalr1.cc (LocationStack, LocationType, RhsNumberType) (SemanticStack, SemanticType, StateStack, StateType) (TokenNumberType, Stack, Slice, Traits, Parser::location) (Parser::value): Rename as... (location_stack, location_type, rhs_number_type, semantic_stack) (semantic_type, state_stack, state_type, token_number_type, stack) (slice, traits, parser::yylloc, parser::yylval): these. * tests/calc.at, tests/regression.at, tests/actions.at: Adjust. Akim Demaille 2004-12-20 13:56:38 +00:00
  • 9bec482e39 (YYLLOC_DEFAULT): Use GNU spacing conventions. Paul Eggert 2004-12-20 03:44:10 +00:00
  • f6fbd3da9d Remove uses of 'short int' and 'unsigned short int' in the parser generators. Paul Eggert 2004-12-17 20:29:19 +00:00
  • efeed02327 * data/lalr1.cc: Extensive Doxygenation. (error_): Rename as... (error): this, since it is visible to the user. Adjust callers. (Parser::message): Now an automatic variable from... (Parser::yyreport_syntax_error_): here. * tests/actions.at, tests/calc.at, tests/regression.at: Adjust to Parser::error. * tests/input.at: Escape $. Akim Demaille 2004-12-17 15:24:32 +00:00
  • 76dcf299b7 Regenerate. Paul Eggert 2004-12-16 20:42:40 +00:00
  • bc82c5a593 * data/glr.c (b4_lhs_value, b4_rhs_value, b4_rhs-location): Parenthesize rhs to avoid obscure problems with mistakes like "foo$$bar = foo$1bar;". Problem reported by twlevo at xs4all. * data/lalr1.cc (b4_lhs_value, b4_rhs_value, b4_lhs_location, b4_rhs_location): Likewise. * data/yacc.c (b4_lhs_value, b4_rhs_value, b4_lhs_location, b4_rhs_location): Likewise. Paul Eggert 2004-12-16 20:41:54 +00:00
  • fd19f2714f * data/lalr1.cc (yyreport_syntax_error_): Catch up with glr.c and yacc.c: be sure to stay within yycheck_. * tests/actions.at: Re-enable C++ tests. Akim Demaille 2004-12-16 14:39:42 +00:00
  • 10454ea42f * src/print_graph.c (print_graph): Remove layoutalgorithm uses for real. Akim Demaille 2004-12-16 09:09:56 +00:00
  • c5b95ccf6b Use #define to handle the %name-prefix. * data/glr.c, data/yacc.c: Comment changes. * data/lalr1.cc (yylex): Use #define to select the name of yylex, so that one can refer to yylex in the parser file, and have it renamed, as is the case with other skeletons. Akim Demaille 2004-12-16 09:06:08 +00:00
  • 617a8f1227 Move lalr1.cc internals into yy*. * data/lalr1.cc (semantic_stack_, location_stack_, state_stack_) (semantic_stack_, location_stack_, pact_, pact_ninf_, defact_) (pgoto_, defgoto_, table_, table_ninf_, check_, stos_, r1_, r2_) (name_, rhs_, prhs_, rline_, token_number_, eof_, last_, nnts_) (empty_, final_, terror_, errcode_, ntokens_) (user_token_number_max_, undef_token_, n_, len_, state_, nerrs_) (looka_, ilooka_, error_range_, nerrs_): Rename as... (yysemantic_stack_, yylocation_stack_, yystate_stack_) (yysemantic_stack_, yylocation_stack_, yypact_, yypact_ninf_) (yydefact_, yypgoto_, yydefgoto_, yytable_, yytable_ninf_) (yycheck_, yystos_, yyr1_, yyr2_, yyname_, yyrhs_, yyprhs_) (yyrline_, yytoken_number_, yyeof_, yylast_, yynnts_, yyempty_) (yyfinal_, yyterror_, yyerrcode_, yyntokens_) (yyuser_token_number_max_, yyundef_token_, yyn_, yylen_, yystate_) (yynerrs_, yylooka_, yyilooka_, yyerror_range_, yynerrs_): these. Akim Demaille 2004-12-16 08:48:54 +00:00
  • 1e547e6e8c Fix some problems reported by twlevo at xs4all. Paul Eggert 2004-12-16 00:09:28 +00:00
  • ea193b9dae * src/vcg.h (enum layoutalgorithm): Remove. All uses removed. (struct node, struct graph): Rename member expand to stretch. All uses changed. (struct graph): Remove member layoutalgorithm. All uses removed. * src/vcg.c (get_layoutalgorithm_str): Remove. All uses removed. * src/vcg_defaults.h (G_STRETCH): Renamed from G_EXPAND. All uses changed. (N_STRETCH): Rename from N_EXPAND. All uses changed. Paul Eggert 2004-12-16 00:09:08 +00:00
  • 3239db74b1 (symbol_new): Report an error if the input grammar contains too many symbols. Paul Eggert 2004-12-16 00:08:21 +00:00
  • 735d6bd42e The ChangeLog of the previous patch. Akim Demaille 2004-12-15 17:42:18 +00:00
  • f69a414266 * data/lalr1.cc (lex_): Rename as... (yylex_): this. Move the trace here. Take the %name-prefix into account. Reported by Alexandre Duret-Lutz. Akim Demaille 2004-12-15 17:38:37 +00:00