summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Version 2.4.1.v2.4.1branch-2.4.1Joel E. Denny2008-12-114-4/+12
| | | | | | * NEWS: Set version and date. * lib/Makefile.am: Update copyright year. * tests/atlocal.in: Update copyright year.
* Semicolon feature removal is not about future language support.Joel E. Denny2008-12-112-7/+12
| | | | | * NEWS: The semicolon feature is no longer active for newer languages, so don't claim that it causes trouble for them.
* * gnulib: Update submodule to HEAD.Joel E. Denny2008-12-112-0/+4
|
* Update data/README.Akim Demaille2008-12-092-7/+39
| | | | * data/README: Document glr.cc, lalr1.java, m4sugar and xslt.
* Spelling fixes.Akim Demaille2008-12-091-1/+1
| | | | * NEWS: s/than/that/.
* Build testsuite with newer autoconf.Eric Blake2008-12-053-22/+34
| | | | | | | | | | | | * tests/output.at (m4_expand): Don't override in newer autoconf, where the underlying implementation changed. * tests/cxx-type.at (_AT_RESOLVED_GLR_OUTPUT) (_AT_RESOLVED_GLR_OUTPUT_WITH_LOC, _AT_AMBIG_GLR_OUTPUT) (_AT_AMBIG_GLR_OUTPUT_WITH_LOC, _AT_GLR_STDERR) (_AT_VERBOSE_GLR_STDERR): Expand to double-quoted strings, since some of them contain unbalanced ')'. Signed-off-by: Eric Blake <ebb9@byu.net>
* * NEWS: Clarify a little.Joel E. Denny2008-11-192-2/+8
|
* * NEWS: Update for recent changes.Joel E. Denny2008-11-192-3/+12
|
* Fix unexpanded macros in GLR defines file.Joel E. Denny2008-11-195-168/+231
| | | | | | | | | | | | | | | | | | | Reported by Csaba Raduly at <http://lists.gnu.org/archive/html/bug-bison/2008-11/msg00048.html>. * THANKS (Csaba Raduly): Add. * data/glr.c: Fix overquoting on b4_prefix for yylval and yylloc. * tests/calc.at (_AT_DATA_CALC_Y): If %defines is specified, generate lexer in a separate module that includes the defines file. (AT_CHECK_CALC): Use AT_FULL_COMPILE and request compilation of lexer source. * tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Push AT_DEFINES_IF. Adjust AT_LOC and AT_VAL to use AT_NAME_PREFIX. (AT_BISON_OPTION_POPDEFS): Pop AT_DEFINES_IF. (AT_DATA_SOURCE_PROLOGUE): New. (AT_DATA_GRAMMAR_PROLOGUE): Use AT_DATA_SOURCE_PROLOGUE. (AT_DATA_SOURCE): New. (AT_FULL_COMPILE): New, copied from master branch and extended to support an additional output file.
* Don't let maintainer-*-check targets force a version update.Joel E. Denny2008-11-172-5/+11
| | | | | * cfg.mk (_is-dist-target): Implement. maintainer-check* was already handled.
* Fix formatting and content of bison.texinfo menusDi-an Jan2008-11-172-172/+183
| | | | | | | | | * doc/bison.texinfo: Synchronize ``Detail Node Listing''. Align menus. Adjust word wrapping. Use node names for menu names. (Examples): Don't abbreviate node names. (LocalWords): Remove abbreviations. (Copying): Make description a sentence. (Java Action Features): Remove period to match the rest of menu.
* Replace m4/warning.m4 with warnings module.Paolo Bonzini2008-11-129-27/+32
| | | | | | | | * bootstrap.conf: Replace m4/warning.m4 with warnings module. * configure.ac: Adjust usage. * lib/Makefile.am: Replace $(WARNING_CFLAGS) with $(WARN_CFLAGS). * src/Makefile.am: Replace $(WARNING_CFLAGS) with $(WARN_CFLAGS). * tests/atlocal.in: Replace $(WARNING_*FLAGS) with $(WARN_*FLAGS).
* Don't add a semicolon to actions for %skeleton or %language.Joel E. Denny2008-11-072-2/+11
| | | | | It breaks Java test cases as reported by Akim Demaille. * src/scan-code.l: Implement.
* Clean up %skeleton and %language priority implementation.Joel E. Denny2008-11-076-12/+28
| | | | | | | | | | | | * src/getargs.c (skeleton_prio): Use default_prio rather than 2, and remove static qualifier because others will soon need to see it. (language_prio): Likewise. (getargs): Use command_line_prio rather than 0. * src/getargs.h (command_line_prio, grammar_prio, default_prio): New enum fields. (skeleton_prio): Extern it. (language_prio): Extern it. * src/parse-gram.y: Use grammar_prio rather than 1.
* Mention the trailing semicolon in action.Akim Demaille2008-11-042-1/+20
| | | | * NEWS: Mention the trailing semicolon in action.
* Reformat NEWS.Akim Demaille2008-11-042-186/+192
| | | | | * NEWS: Use more outline-mode markup. Suggested by Jim Meyering.
* Fix user actions without a trailing semicolon.Joel E. Denny2008-11-044-3/+38
| | | | | | | | | Reported by Sergei Steshenko at <http://lists.gnu.org/archive/html/bug-bison/2008-11/msg00001.html>. * THANKS (Sergei Steshenko): Add. * src/scan-code.l (SC_RULE_ACTION): Fix it. * tests/regression.at (Fix user actions without a trailing semicolon): New test case.
* Initiate further development.Joel E. Denny2008-11-023-0/+10
| | | | | * NEWS: Create an empty section for new entries. * gnulib: Update submodule to HEAD.
* * NEWS: Version 2.4.v2.4Joel E. Denny2008-11-022-1/+5
|
* Prepare for next release.Joel E. Denny2008-11-023-4/+16
| | | | | | * NEWS: Briefly mention changes since 2.3b. * README: Say GNU m4 1.4.6, which we've been requiring in release announcements already, not 1.4.3, which breaks the build.
* Say %language is experimental.Joel E. Denny2008-11-024-15/+42
| | | | | | | | | | | | | We're thinking of extending it's effect on output file naming. See the thread at <http://lists.gnu.org/archive/html/bison-patches/2008-10/msg00003.html>. * NEWS: Say it's experimental. * doc/bison.texinfo (Decl Summary): Say it's experimental, and so don't recommend it over %skeleton for now. (Bison Options): Likewise. (C++ Bison Interface): Use %skeleton not %language. (Calc++ Parser): Use %skeleton not %language. * src/getargs.c (usage): Say it's experimental.
* Java parser improvementsDi-an Jan2008-11-015-134/+837
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-11-01 Di-an Jan <dianj@freeshell.org> Paolo Bonzini <bonzini@gnu.org> Support all Java parser class modifiers. * data/java.m4 (b4_percent_define_get3): New. (b4_final_if, b4_strictfp_if): New. * data/lalr1.java (final, strictfp, extends, implements): Support. * doc/bison.texinfo (final, strictfp, extends, implements): Add documentation. * tests/java.at (AT_CHECK_JAVA_MINIMAL): New. (AT_CHECK_JAVA_MINIMAL_W_LEXER): New. (AT_CHECK_JAVA_GREP): New. (Java parser class modifiers): New test. (Java parser class extends and implements): New test. Model exception propagation better with throws and lex_throws. * data/java.m4 (b4_list2): New. (throws): Change default. * data/lalr1.java (yyaction): Add throws. (parse): Add lex_throws in addition to throws. * doc/bison.texinfo (throws, lex_throws): Add documentation. * tests/java.at (Java throws specifications): New test. Improve documentation for Java parsers. * doc/bison.texinfo (Java Parsers): Add subsections. Don't quote first argument of %define. (Java Bison Interface): Document output files. Move documentation of parser class and merge into Java Parser Interface. Document features that error out. Document directives with no effect. Move note about Javadoc higher. (Java Semantic Values): Explicitly mention stype. Document that generic types cannot be used. (Java Location Values): Use @deftypeivar. Document constructors. Correct return value for toString. (Java Parser Interface): List undocumented constants/fields. Move documentation of fields added by %parse-param closer to list of members. Document that token names are added as fields. Document constructors accurately. Remove error method. (Java Scanner Interface): Move note on %pure-parser to Java Bison Interface. Describe %code lexer and yylex accutately. Remove documentation that does not match the code. (Java Action Features): New. (Java Differences): Add reference. Add item on semantic values. Add note about @{ ... @}. Clarify %% epilogue placement. (Java Declarations Summary): New. Fix Java skeleton. * data/java.m4 (b4_prefix): Correct quoting for m4_define_default. (b4_remove_comma): Quote test argument. * tests/java.at (Java parser class and package names): New test. (Java %parse-param and %lex-param): New test. (Java stype, position_class and location_class): New test.
* commit missing ChangeLog entryPaolo Bonzini2008-10-311-0/+11
|
* Correct visible errors in generated Javadoc.Di-an Jan2008-10-311-7/+7
| | | | | | | | | | | | | 2008-10-27 Di-an Jan <dianj@freeshell.org> * data/lalr1.jave: Update copyright years. (YYParser): Correct name of "generated from" file in Javadoc: use b4_file_name instead of @ofile@. (Location constructor): Correct Javadoc parameter name. (yylloc): Add missing opening m4 quote after b4_location_if. This removes a stray [ in the Javadoc of Lexer.getStartPos. (Lexer.yyerror): Fix incorrect m4 and Javadoc. (YYParser constructor): Correct Javadoc parameter name.
* Always put auxiliary code files in the same dir as other output files.Joel E. Denny2008-10-303-4/+25
| | | | | | | | | | | * src/files.c (compute_file_name_parts): When the user specifies --output but not --file-prefix, extract the directory prefix from the file prefix not from the grammar file name. This affects the location of files like location.hh generated by the C++ skeleton. The includes in the other output files require this fix. * tests/output.at (AT_CHECK_OUTPUT): Automatically create directories for expected output files. (Output files): Add a test for the above.
* * gnulib: Update submodule to HEAD.Joel E. Denny2008-10-292-0/+4
|
* Update copyright year.Joel E. Denny2008-10-282-1/+6
| | | | * src/files.c: Here.
* Don't overwrite the input file.Di-an Jan2008-10-283-3/+19
| | | | | | | | * src/files.c (output_file_name_check): Fatal error if using input file for output. * tests/output.at: (AT_CHECK_CONFLICTING_OUTPUT): Add return status argument. (Conflicting output files): Add test.
* Space changes.Akim Demaille2008-10-282-1/+6
| | | | * data/lalr1.cc: Formatting changes.
* Don't define debugging functions when !YYDEBUG.Akim Demaille2008-10-282-0/+10
| | | | | | | * data/lalr1.cc (debug_stream, set_debug_stream) (debug_level_type, debug_level, set_debug_level): Don't declare them when YYDEBUG is not defined. The implementation are already YYDEBUG-aware.
* Prefer "continue" for empty loop bodies.Akim Demaille2008-10-282-3/+6
| | | | * etc/bench.pl.in: Use "continue" instead of {}.
* Space and comments changes.Akim Demaille2008-10-285-9/+21
| | | | | * data/c++.m4, data/glr.c, data/lalr1.cc: Copyright year changes. * data/c.m4, data/lalr1.cc: Space changes.
* Make gnulib a submodule.Akim Demaille2008-10-284-0/+10
| | | | | * gnulib: New. * .gitmodules (gnulib): New.
* Fix yyerror_range for user-defined location type in C++.Joel E. Denny2008-10-183-1/+10
| | | | | | | Reported by Georg Sauthoff at <http://lists.gnu.org/archive/html/bug-bison/2008-08/msg00008.html>. * data/lalr1.cc (parse): Change type of yyerror_range to location_type. * THANKS (Georg Sauthoff): Add.
* Update several administrative files mainly to facilitate releasing.Joel E. Denny2008-10-1815-689/+121
| | | | | | | | | | | | | | | | | | * HACKING (Administrivia): Make the git-merge-changelog notes more helpful. (Test suite): Don't say lalr1.cc is not exercised in the test suite. (Release Procedure): Update for git and add numerous details that were previously missing. * Makefile.am (EXTRA_DIST): Remove Makefile.cfg and Makefile.maint. * maint.mk (announcement): Don't list bison as a bootstrap tool so that announcements don't claim we bootstrapped with whatever bison happened to be in PATH. Add flex as a bootstrap tool. * Makefile.maint: Remove, previously replaced by maint.mk. * Makefile.cfg: Remove, and migrate settings to... * cfg.mk: ... here for the sake of `make announcement'. * bootstrap.conf (gnulib_modules): Add announce-gen. * README: Say GNU Bison instead of just Bison. Suggested by Karl Berry.
* small but important bugfixes for the Java skeletonPaolo Bonzini2008-10-093-2/+9
| | | | | | | | 2008-10-08 Di-an Jan <dianj@freeshell.org> (tiny change) Small but important bugfixes for the Java skeleton. * data/lalr1.java (yyerror): Change Location to b4_location_type. (yy_symbol_print): Call toString on yyvaluep.
* Clarify UPDATED use.Akim Demaille2008-08-292-2/+9
| | | | | | * doc/bison.texinfo: It refers to the last edition of this file, not to the release date of Bison. Reported by Joel E. Denny.
* Update README.Akim Demaille2008-08-292-3/+12
| | | | | * README: Update FAQ pointer. Reported by Joel E. Denny.
* Resync m4sugar from autoconf.Eric Blake2008-08-273-29/+94
| | | | | | | | | | | * data/m4sugar/m4sugar.m4 (m4_defn, m4_popdef, m4_undefine) (m4_init): Adjust to latest m4.git changes. (m4_mapall_sep, _m4_list_cmp, m4_version_compare): Reduce side effects. * data/m4sugar/foreach.m4 (_m4_shiftn): Fix off-by-one bug. (_m4_list_cmp): Reduce side effects. Signed-off-by: Eric Blake <ebb9@byu.net>
* Check yyerrok in calc.at.Akim Demaille2008-08-272-2/+17
| | | | | | * tests/calc.at (calc.y): Use yyerrok on "( error )". (AT_CHECK_CALC): Add a check that ensures that yyerrok works as expected.
* Support yyerrok in lalr1.cc.Akim Demaille2008-08-272-0/+10
| | | | | | YYBACKUP is still to import back into lalr1.cc. * data/lalr1.cc (yyerrork, yyclearin, YYRECOVERING): Define.
* For maintainer-check*, don't recompile for a $(VERSION) update.Joel E. Denny2008-08-263-1/+31
| | | | | | * cfg.mk: New file. (_is-dist-target): Override the one in GNUmakefile. * Makefile.am (EXTRA_DIST): Add cfg.mk.
* Update for recent change to gnulib.Joel E. Denny2008-08-266-149/+153
| | | | | * src/parse-gram.y: Don't include strverscmp.h. It comes from string.h now.
* Remaining m4sugar merge from autoconf.Eric Blake2008-08-155-282/+1489
| | | | | | | | | * data/m4sugar/m4sugar.m4: Copy entire file from autoconf. * data/m4sugar/foreach.m4: New file, copied from autoconf. * data/Makefile.am (dist_m4sugar_DATA): Distribute it. * src/output.c (output_skeleton): Tell m4 how to find it. Signed-off-by: Eric Blake <ebb9@byu.net>
* Partial m4sugar merge from autoconf: m4_map.Eric Blake2008-08-154-30/+99
| | | | | | | | | | | | | | * data/m4sugar/m4sugar.m4 (m4_fst): Delete. (m4_map, m4_map_sep, _m4_map): Rewrite more efficiently. (m4_apply, _m4_apply, m4_mapall, m4_mapall_sep): New macros. * data/java.m4 (b4_token_enums): Use more efficient short-circuit for empty list. * data/c.m4 (b4_token_defines, b4_token_enums, b4_c_ansi_formals): Likewise. (b4_parse_param_for): Avoid m4_fst, now that autoconf no longer declares it. Signed-off-by: Eric Blake <ebb9@byu.net>
* Keep .version and PACKAGE_VERSION in sync.Joel E. Denny2008-08-072-2/+18
| | | | | | | * Makefile.am ($(top_srcdir)/.version): Declare configure as a dependency, and add comments justifying this in more detail. Discussed starting at <http://lists.gnu.org/archive/html/bison-patches/2008-07/msg00022.html>.
* Partial m4sugar merge from autoconf: m4_shiftn.Eric Blake2008-08-064-27/+86
| | | | | | | | | | | * data/m4sugar/m4sugar.m4 (m4_shiftn): Faster implementation. (m4_shift2, m4_shift3): New macros. (m4_case, m4_bmatch, m4_bpatsubsts, m4_join): Adjust clients. * data/c.m4 (b4_c_function_def, b4_c_ansi_function_def) (b4_c_ansi_function_decl, b4_c_function_call): Likewise. * data/java.m4 (b4_remove_comma): Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
* Partial m4sugar merge from autoconf: m4_wrap vs. m4 1.6.Eric Blake2008-08-063-6/+51
| | | | | | | | | | * data/m4sugar/m4sugar.m4 (m4_unquote, m4_wrap_lifo): New macros. (m4_wrap): Guarantee FIFO order, in spite of m4 1.6. (m4_init): Consolidate wrapped text into single m4_wrap. * data/bison.m4 (b4_check_user_names_wrap): Stick with LIFO order in wrapped text. Signed-off-by: Eric Blake <ebb9@byu.net>
* Partial m4sugar merge from autoconf: builtins, version.m4.Eric Blake2008-08-052-18/+32
| | | | | | | | | | | | * data/m4sugar/m4sugar.m4 (changeword): Nuke. (m4_prepend): Remove, as it is unused and inherently quadratic, whereas m4_append is linear in newer m4. (m4_mkstemp): New builtin. (m4_symbols): Make rename conditional. (m4_version_prereq): Ensure fatal error if used in bison, which intentionally lacks version.m4. Signed-off-by: Eric Blake <ebb9@byu.net>
* Fix comments in m4sugar.Eric Blake2008-08-052-71/+89
| | | | | | * data/m4sugar/m4sugar.m4: Comment changes, borrowed from autoconf. Signed-off-by: Eric Blake <ebb9@byu.net>