Commit Graph

  • 24b1e65f04 * src/reduce.c: Various comment/formatting changes. (nonterminals_reduce): New, extracted from... (reduce_grammar_tables): here. (reduce_grammar): Call nonterminals_reduce. Akim Demaille 2001-11-30 10:45:14 +00:00
  • 396452de26 * src/bison.simple (YYSTACK_REALLOC): Remove. (YYSTACK_ALLOC): Resurrect this macro, with its old meaning. (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE): New macros. (union yyalloc): New type. (__yy_memcpy): Last arg is size_t, not unsigned int, to remove an arbitrary restriction on hosts where size_t is wider than int. Paul Eggert 2001-11-30 02:56:45 +00:00
  • 600f9b0ccc (YYSTACK_REALLOC): Remove. (YYSTACK_ALLOC): Resurrect this macro, with its old meaning. (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE): New macros. (union yyalloc): New type. (__yy_memcpy): Last arg is size_t, not unsigned int, to remove an arbitrary restriction on hosts where size_t is wider than int. Paul Eggert 2001-11-30 02:54:54 +00:00
  • 7ad28769d6 (YYSTACK_REALLOC): Remove. (YYSTACK_ALLOC): Resurrect this macro, with its old meaning. (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE): New macros. (union yyalloc): New type. (__yy_memcpy): Last arg is size_t, not unsigned int, to remove an arbitrary restriction on hosts where size_t is wider than int. Paul Eggert 2001-11-30 02:47:56 +00:00
  • 57d4ee2b82 * src/bison.simple (YYSTACK_REALLOC): Remove. (YYSTACK_ALLOC): Resurrect this macro, with its old meaning. (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE): New macros. (union yyalloc): New type. (__yy_memcpy): Last arg is size_t, not unsigned int, to remove an arbitrary restriction on hosts where size_t is wider than int. Paul Eggert 2001-11-30 02:45:34 +00:00
  • 04a76783ab Update. Marc Autret 2001-11-29 20:52:44 +00:00
  • 147e184ccc * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead of defining YYERROR_VERBOSE. [AT_DATA]: $4 is now out of C declarations in the prologue. Marc Autret 2001-11-29 20:48:45 +00:00
  • 84b113cd22 Update. Marc Autret 2001-11-28 22:31:51 +00:00
  • 426cf563bd * src/reader.c (parse_dquoted_param): New. (parse_skel_decl): Use it. * src/lex.h: Add its prototype. * src/lex.c (literalchar): Become not static. Marc Autret 2001-11-28 22:28:01 +00:00
  • ec93a21372 Update. Marc Autret 2001-11-28 21:31:49 +00:00
  • c7925b99cb * src/output.h: And put its extern declaration here. * src/output.c (error_verbose): Define here. (prepare): Echo name modification. * src/getargs.h: Clean its extern declaration. * src/getargs.c (error_verbose_flag): Remove. (getargs): Remove case 'e'. * src/options.c (option_table): 'error-verbose' is now seen as simple percent option. Include output.h. * src/reader.c (read_declarations): Remove case tok_include. (parse_include_decl): Remove. * src/lex.h (token_t): Remove tok_include. * src/options.c (option_table): 'include' is now a simple command line option. Marc Autret 2001-11-28 21:31:13 +00:00
  • 5b5d192929 * src/bison.simple: Adjust muscle names. * src/muscle_tab.c (muscle_init): Also rename the muscles. * src/output.c (prepare): s/_/-/ for the muscles names. (output_parser): When scanning for a muscle, allow '-' instead of '_'. Marc Autret 2001-11-28 20:32:53 +00:00
  • 8850be4b1c * src/bison.simple: Fix debug. [YYERROR_VERBOSE]: Re-integrate as an internal macro. Marc Autret 2001-11-28 19:54:36 +00:00
  • 9113b58f6f Regen. Akim Demaille 2001-11-28 14:59:53 +00:00
  • d8a9ec00b8 Regen. Akim Demaille 2001-11-28 14:59:32 +00:00
  • 872e1b86c4 Typo. Akim Demaille 2001-11-28 14:58:05 +00:00
  • ad4c2c7a57 * src/LR0.c (shifts_new): New. (save_shifts, insert_start_shift, augment_automaton): Use it. Akim Demaille 2001-11-28 14:57:44 +00:00
  • 0785dec2c8 * src/closure.c (closure): b' and ruleno' denote the same value: keep ruleno only. Akim Demaille 2001-11-28 14:57:30 +00:00
  • e1828f4f07 * src/closure.c (closure): Instead of looping over word in array then bits in words, loop over bits in array. Akim Demaille 2001-11-28 14:57:16 +00:00
  • a816bf3eac * src/closure.c (closure): No longer optimize the special case where all the bits of `ruleset[r]' are set to 0, to make the code clearer. Akim Demaille 2001-11-28 14:57:02 +00:00
  • 2ce6476804 * src/closure.c (closure): r' and c' are new variables, used to de-obfuscate accesses to RULESET and CORE. Akim Demaille 2001-11-28 14:55:38 +00:00
  • 4a38e61393 * src/LR0.c (shifts_new): New. (save_shifts, insert_start_shift, augment_automaton): Use it. Akim Demaille 2001-11-28 14:53:29 +00:00
  • 4b35e1c1dd * src/closure.c (closure): b' and ruleno' denote the same value: keep ruleno only. Akim Demaille 2001-11-28 14:53:16 +00:00
  • d2b04478d4 * src/closure.c (closure): Instead of looping over word in array then bits in words, loop over bits in array. Akim Demaille 2001-11-28 14:53:03 +00:00
  • 2c4c30aa95 * src/closure.c (closure): No longer optimize the special case where all the bits of `ruleset[r]' are set to 0, to make the code clearer. Akim Demaille 2001-11-28 14:52:50 +00:00
  • 576890b7ee * src/closure.c (closure): r' and c' are new variables, used to de-obfuscate accesses to RULESET and CORE. Akim Demaille 2001-11-28 14:52:38 +00:00
  • cb487d7d0d * src/reduce.c (reduce_print): Use ngettext. (dump_grammar): Improve the trace accuracy. Akim Demaille 2001-11-28 13:38:53 +00:00
  • 457b6d1e72 * src/reduce.c (reduce_print): Use ngettext. (dump_grammar): Improve the trace accuracy. Akim Demaille 2001-11-28 13:38:15 +00:00
  • 6013d43f59 * src/reduce.c (dump_grammar): Don't translate trace messages. Akim Demaille 2001-11-28 11:58:28 +00:00
  • 79ebbdb36a * src/reduce.c (dump_grammar): Don't translate trace messages. Akim Demaille 2001-11-28 11:58:00 +00:00
  • cb4956ee99 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New. * src/reduce.c (reduce_grammar_tables): Do not free useless tags, as all tags are free'ed afterwards. From Enrico Scholz. Akim Demaille 2001-11-28 11:43:24 +00:00
  • 0aa2ac9063 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New. * src/reduce.c (reduce_grammar_tables): Do not free useless tags, as all tags are free'ed afterwards. From Enrico Scholz. Akim Demaille 2001-11-28 11:42:56 +00:00
  • e7d79012ae * src/system.h: Use intl/libgettext.h. * src/Makefile.am (INCLUDES): Add -I $(top_srcdir). Akim Demaille 2001-11-28 10:32:48 +00:00
  • eb4a4d73bc * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to use alloca when we didn't want to, and vice versa. Paul Eggert 2001-11-27 23:31:47 +00:00
  • 648185ab4a * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to use alloca when we didn't want to, and vice versa. Paul Eggert 2001-11-27 23:19:14 +00:00
  • b3324f97a8 Update. Marc Autret 2001-11-27 20:56:41 +00:00
  • 68254a0303 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle initialization. * src/output.c (prepare): Remove its update. Marc Autret 2001-11-27 20:55:16 +00:00
  • d2079671fb Adjust typo. Marc Autret 2001-11-27 20:47:25 +00:00
  • 04d843a2a8 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition. Use %error-verbose. Marc Autret 2001-11-27 20:46:12 +00:00
  • eeeb962b2f * src/bison.simple: Remove YYERROR_VERBOSE using. Use %%error_verbose. (yyparse): Likewise. * src/output.c (prepare): Give its final value. * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'. * src/getargs.h: Add its extern declaration. * src/getargs.c (error_verbose_flag): New int. (getargs): Update to catch new case. * src/options.c (option_table): 'error-verbose' is a new option. (shortopts): Update. Marc Autret 2001-11-27 20:30:13 +00:00
  • e0327bc8b4 * src/system.h: Use intl/libgettext.h. * src/Makefile.am (INCLUDES): Add -I $(top_srcdir). Akim Demaille 2001-11-27 19:22:10 +00:00
  • 000f1a3cb2 * tests/torture.at (Exploding the Stack Size with Malloc): s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/. Akim Demaille 2001-11-27 18:57:51 +00:00
  • dee96b5a07 * tests/torture.at (Exploding the Stack Size with Malloc): s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/. Akim Demaille 2001-11-27 18:57:02 +00:00
  • 26cfe0be87 * src/files.c: Include error.h. Reported by Hans Aberg. Akim Demaille 2001-11-27 18:43:20 +00:00
  • 4bfeeafb00 * src/files.c: Include error.h. From Hans Aberg. Akim Demaille 2001-11-27 18:42:32 +00:00
  • a12f5cabb2 Update TODO. Marc Autret 2001-11-26 23:23:40 +00:00
  • f6bd542788 * src/reader.c (parse_include_decl): New, Not yet implemented. (read_declarations): Add case tok_include. * src/getargs.h (include): Add its extern definition. * src/getargs.c (include): New const char *. (getargs): Add case '-I'. * src/options.c (option_table): Add include as command line and percent option. * src/lex.h (token_t): Add tok_include. Marc Autret 2001-11-26 21:06:22 +00:00
  • c18cf8cb26 Revert doc patch. Marc Autret 2001-11-26 19:19:21 +00:00
  • a220f55509 Revert doc patch. Marc Autret 2001-11-26 19:13:40 +00:00
  • 54b982ae70 Bump to 1.30f. Akim Demaille 2001-11-26 17:13:05 +00:00
  • cf2e198269 Version 1.30e. v1.30e Akim Demaille 2001-11-26 16:47:53 +00:00
  • 2ca209c11d * src/reader.c (readgram): Make sure rules for mid-rule actions have a lineno equal to that of their host rule. Reported by Hans Aberg. * tests/regression.at (Rule Line Numbers): New. Akim Demaille 2001-11-26 15:27:58 +00:00
  • af4483a0ab Typo. Akim Demaille 2001-11-26 15:25:10 +00:00
  • 674fd9acbc * src/reader.c (readgram): Make sure rules for mid-rule actions have a lineno equal to that of their host rule. Reported by Hans Aberg. * tests/regression.at (Rule Line Numbers): New. Akim Demaille 2001-11-26 15:24:06 +00:00
  • 0e41b407b9 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not size_ts. Akim Demaille 2001-11-26 13:01:17 +00:00
  • 6fedd4d1d6 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not size_ts. Reported by Hans Aberg. Akim Demaille 2001-11-26 13:01:10 +00:00
  • abe1baa044 * src/complain.c, src/complain.h (error): Remove, provided by lib/error.[ch]. Akim Demaille 2001-11-26 11:26:35 +00:00
  • e0c40012bd * src/reader.c (read_declarations): Don't abort on tok_illegal, issue an error message. * tests/regression.at (Invalid %directive): New. Reported by Hans Aberg. Akim Demaille 2001-11-26 09:50:29 +00:00
  • 33285af04d * src/reader.c (read_declarations): Don't abort on tok_illegal, issue an error message. * tests/regression.at (Invalid %directive): New. Reported by Hans Aberg. Akim Demaille 2001-11-26 09:49:58 +00:00
  • 5e147124b5 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE. * lib/Makefile.am (libbison_a_SOURCES): Adjust. Akim Demaille 2001-11-26 09:35:38 +00:00
  • a034c8b849 * src/conflicts.c (conflicts_print): Don't complain at all when there are no reduce/reduce conflicts, and as many shift/reduce conflicts as expected. * tests/regression.at (%expect right): Adjust. Akim Demaille 2001-11-26 09:32:32 +00:00
  • cd7f95831e * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE. * lib/Makefile.am (libbison_a_SOURCES): Adjust. Akim Demaille 2001-11-26 09:19:56 +00:00
  • 1b9a8440cd * src/conflicts.c (conflicts_print): Don't complain at all when there are no reduce/reduce conflicts, and as many shift/reduce conflicts as expected. * tests/regression.at (%expect right): Adjust. Akim Demaille 2001-11-26 09:18:40 +00:00
  • b83f0407c6 * doc/bison.texinfo (Mystery Conflicts): Hint '-v' use. From Golubev I. N. Marc Autret 2001-11-25 13:02:55 +00:00
  • aead559e00 * doc/bison.texinfo (Mystery Conflicts): Hint '-v' use. From Golubev I. N. Marc Autret 2001-11-25 12:57:33 +00:00
  • c64a20f3dc * lib/alloca.c: Update, from fileutils. Akim Demaille 2001-11-23 14:56:30 +00:00
  • 92b69b7f09 * lib/alloca.c: Update, from fileutils. Akim Demaille 2001-11-23 14:55:36 +00:00
  • 5b0d29bb52 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@. Akim Demaille 2001-11-23 14:19:09 +00:00
  • 6e303f08d6 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@. Akim Demaille 2001-11-23 14:18:36 +00:00
  • 3dfc01e247 Regen. Akim Demaille 2001-11-23 14:17:53 +00:00
  • 722c4bfec2 * src/system.h: Include alloca.h. * src/main.c (main) [C_ALLOCA]: Call alloca (0). Akim Demaille 2001-11-23 14:16:34 +00:00
  • 1503820f54 1.30e. Akim Demaille 2001-11-23 14:15:42 +00:00
  • bc9bb28004 Update. Akim Demaille 2001-11-23 14:15:08 +00:00
  • 6255b43511 * src/print_graph.c (print_actions): Remove rule', unused. * src/LR0.c (kernel_size): Contain int' instead of `size_t' to pacify GCC's signed < unsigned warnings. * src/closure.c (itemsetsize): Likewise. * src/reader.c (symbol_list_new): Static. Akim Demaille 2001-11-23 14:13:20 +00:00
  • 16c4a35041 * src/system.h: Include alloca.h. * src/main.c (main) [C_ALLOCA]: Call alloca (0). Akim Demaille 2001-11-23 14:13:19 +00:00
  • b29b2ed560 Attaching lineno to buckets is stupid, since only one copy of each symbol is kept, only the line of the first occurrence is kept too. * src/symtab.h, src/symtab.c (bucket): Remove the line member. * src/reader.c (rline_allocated): Remove, unused. (symbol_list): Have a `line' member. (symbol_list_new): New. (readgram): Use it. * src/print.c (print_grammar): Output the rule line numbers. * tests/regression.at (Solved SR Conflicts) (Unresolved SR Conflicts): Adjust. Reported by Hans Aberg. Akim Demaille 2001-11-23 14:13:02 +00:00
  • f0451dba71 * src/print_graph.c (print_actions): Remove rule', unused. * src/LR0.c (kernel_size): Contain int' instead of `size_t' to pacify GCC's signed < unsigned warnings. * src/closure.c (itemsetsize): Likewise. * src/reader.c (symbol_list_new): Static. Akim Demaille 2001-11-23 14:04:08 +00:00
  • a9f37dee0c Attaching lineno to buckets is stupid, since only one copy of each symbol is kept, only the line of the first occurrence is kept too. * src/symtab.h, src/symtab.c (bucket): Remove the line member. * src/reader.c (rline_allocated): Remove, unused. (symbol_list): Have a `line' member. (symbol_list_new): New. (readgram): Use it. * src/print.c (print_grammar): Output the rule line numbers. * tests/regression.at (Solved SR Conflicts) (Unresolved SR Conflicts): Adjust. Reported by Hans Aberg. Akim Demaille 2001-11-23 14:03:43 +00:00
  • b497173564 Update. Marc Autret 2001-11-22 22:00:43 +00:00
  • a81b1d4ad4 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0. Marc Autret 2001-11-22 22:00:21 +00:00
  • c1ecb3c1f5 * src/muscle_tab.c (muscle_init): Remove initialization of skeleton muscle. * src/output.c (output_master_parser): Do it here. Marc Autret 2001-11-22 21:45:14 +00:00
  • cc72668cfb Englishoes reported by Jim. Akim Demaille 2001-11-21 11:50:48 +00:00
  • 4b0979fcf3 Englishoes reported by Jim. Akim Demaille 2001-11-21 11:45:51 +00:00
  • cc35239e1b Remove all po/ generated files from repository. Akim Demaille 2001-11-20 13:30:31 +00:00
  • 2e2cbb3fad Remove doc/ generated files from the repository. Akim Demaille 2001-11-20 13:29:40 +00:00
  • adb4edee47 Version 1.30d. v1.30d Akim Demaille 2001-11-20 13:26:58 +00:00
  • 65490badba . Akim Demaille 2001-11-20 13:21:23 +00:00
  • fbe01355c8 * po/sv.po: New. * configure.in (ALL_LINGUAS): Adjust. * po/POTFILE.in: Remove nullable.c' and derives.c' which no longer contains strings to translate. Akim Demaille 2001-11-20 13:16:10 +00:00
  • 8b044b8540 Adjust. Akim Demaille 2001-11-20 13:14:13 +00:00
  • 0704bc9b8e * po/sv.po: New. * configure.in (ALL_LINGUAS): Adjust. * po/POTFILE.in: Remove nullable.c' and derives.c' which no longer contains strings to translate. Akim Demaille 2001-11-20 13:10:12 +00:00
  • 81e895c01e * src/conflicts.c (conflicts_print): Add a missing n. Akim Demaille 2001-11-19 11:08:22 +00:00
  • 2b7c2ef124 * src/conflicts.c (conflicts_print): Add a missing n. Akim Demaille 2001-11-19 11:07:50 +00:00
  • d38d6e7c76 Formatting changes. Akim Demaille 2001-11-19 10:43:20 +00:00
  • 6bb1878b51 * src/nullable.c (nullable_print): New. (set_nullable): Call it when tracing. Better locality of variables. Akim Demaille 2001-11-19 10:39:49 +00:00
  • d9ec2d0749 * src/print.c (print_actions): Better locality of variables. Akim Demaille 2001-11-19 10:39:35 +00:00
  • 720e5c1bc3 * src/derives.c (print_derives): Fix and enrich. * src/closure.c (print_fderives): Likewise. Akim Demaille 2001-11-19 10:39:21 +00:00
  • fb9087861f * src/closure.c (itemsetend): Remove, replaced with... (itemsetsize): new. Akim Demaille 2001-11-19 10:39:07 +00:00
  • 125ecb5684 * src/LR0.c (kernel_end): Remove, replaced with... (kernel_size): new. Akim Demaille 2001-11-19 10:38:53 +00:00
  • d8cf039f97 * src/conflicts.c (set_conflicts): Use arrays instead of pointers to clarify. Akim Demaille 2001-11-19 10:38:39 +00:00
  • 7bec0760a8 * src/closure.c (closure): Use arrays instead of pointers to clarify. Akim Demaille 2001-11-19 10:38:25 +00:00