Akim Demaille and Joel E. Denny
e14c68313b
-D, --define.
...
* src/getargs.c (usage): Document -D.
Fix help string for --locations.
(command_line_location): New.
(short_options, long_options, getargs): Support -D, --define.
(getargs): Move -d support at the right place.
* doc/bison.texinfo (Bison Options): Update.
* tests/input.at (%define, --define): New.
(cherry picked from commit 58697c6d89 )
2009-04-06 04:28:50 -04:00
Akim Demaille and Joel E. Denny
75c21b618d
Initialize the muscle table before parsing the command line.
...
* src/getargs.c (quotearg.h, muscle_tab.h): Include.
(getargs): Define file_name.
* src/main.c (main): Initialize muscle_tab before calling
getargs.
* src/muscle_tab.c (muscle_init): No longer define file_name, as
its value is not available yet.
2009-04-06 04:28:50 -04:00
Akim Demaille and Joel E. Denny
33d2a86079
Require the generation of parse-gram.output.
...
* src/Makefile.am (YACC): Pass --report=all.
(cherry picked from commit 432ac57aaa )
2009-04-06 04:28:50 -04:00
Akim Demaille and Joel E. Denny
f67c40374e
Fix --help.
...
* src/getargs.c (usage): Fix help string for -W.
(cherry picked from commit 9b9e0a7d46 )
2009-04-06 00:54:55 -04:00
Akim Demaille and Joel E. Denny
0213d65176
Handle more general types of option arguments.
...
* build-aux/cross-options.pl: The argument ends at the first
space, not the first non-symbol character.
Use @var for each word appearing the argument description.
(cherry picked from commit 74eae918c3 )
2009-04-06 00:50:21 -04:00
Akim Demaille and Joel E. Denny
0d2b2ab033
Remove spurious initial empty lines.
...
* data/glr.c, data/glr.cc, data/lalr1.cc, data/lalr1.java,
* data/yacc.c: End the @output lines with an @.
2009-04-06 00:36:42 -04:00
Akim Demaille and Joel E. Denny
5d3a1ecbbe
Locations without columns for command line arguments.
...
* src/location.c (location_print): Don't display negative columns.
* src/location.h: Document this.
(cherry picked from commit 56c5eca973 )
2009-04-03 02:24:48 -04:00
Akim Demaille
c1455babda
bootstrap: --help to stdout.
...
* bootstrap (usage): Don't send --help to stderr.
Use a here doc instead of a long string.
2009-03-31 10:44:33 +02:00
Akim Demaille
2075a82a18
bootstrap: README-hacking no longer exists
...
* bootstrap (checkout_only_file): Set to HACKING.
2009-03-31 10:44:00 +02:00
Akim Demaille
26fccd4d7b
doc: merge HACKING and README-hacking.
...
Two files is confusing.
Reported by Alexandre Duret-Lutz.
* README-hacking: Merge into...
* HACKING (Working from the repository): here.
2009-03-26 23:52:00 +01:00
Akim Demaille
6469c4d72b
doc: update README-hacking.
...
* README-hacking: We now use git and git submodules.
Reported by Ralf Wildenhues and Alexandre Duret-Lutz.
2009-03-26 23:48:46 +01:00
Akim Demaille
b328890a9e
lalr1.cc: avoid GCC 4.3 warnings.
...
GCC 4.3 now warns about "a || b && c" and asks for explicit
parentheses.
Reported by Alexandre Duret-Lutz.
* data/location.cc: Update copyright years.
(Position::operator==): Use parens to make precedence explicit.
Compare lines and columns first, as they are more likely to be
different, and they are faster to compare.
2009-03-26 23:45:25 +01:00
Akim Demaille
f307943941
gnulib: update.
...
* gnulib: Update to latest.
* lib/Makefile.am (AM_CPPFLAGS): It is now defined by gnulib, so
use +=.
2009-03-26 23:41:12 +01:00
Akim Demaille
5339158d01
Update gnulib.
2009-02-12 09:51:53 +01:00
Akim Demaille
8defe11bfa
Fix grep portability issues.
...
Grep on Solaris does not support -q.
Reported by Summum Bonum.
* NEWS: Add a stub for 2.4.2.
* THANKS: Add Summum Bonum.
* tests/atlocal.in (EGREP): New.
(CC, CXX, XSLTPROC): Make it possible to override them via
envvars.
* tests/java.at: Use $EGREP instead of egrep.
Use AT_CHECK's ignore instead of grep's -q.
2009-01-08 09:46:40 +01:00
Akim Demaille
876fd8357a
Update data/README.
...
* data/README: Document glr.cc, lalr1.java, m4sugar and xslt.
2008-12-09 13:24:18 +01:00
Akim Demaille
1eb0b14659
Spelling fixes.
...
* NEWS: s/than/that/.
2008-12-09 13:19:44 +01:00
Akim Demaille
738cde3e93
Mention the trailing semicolon in action.
...
* NEWS: Mention the trailing semicolon in action.
2008-11-04 22:26:39 +01:00
Akim Demaille
d6fb461dd8
Reformat NEWS.
...
* NEWS: Use more outline-mode markup.
Suggested by Jim Meyering.
2008-11-04 22:19:33 +01:00
Akim Demaille
482dc52fb7
Space changes.
...
* data/lalr1.cc: Formatting changes.
2008-10-28 17:11:17 +01:00
Akim Demaille
52cbbe845a
Don't define debugging functions when !YYDEBUG.
...
* 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.
2008-10-28 17:11:14 +01:00
Akim Demaille
0925d5bfd4
Prefer "continue" for empty loop bodies.
...
* etc/bench.pl.in: Use "continue" instead of {}.
2008-10-28 17:11:11 +01:00
Akim Demaille
cf98343c1d
Space and comments changes.
...
* data/c++.m4, data/glr.c, data/lalr1.cc: Copyright year changes.
* data/c.m4, data/lalr1.cc: Space changes.
2008-10-28 17:11:07 +01:00
Akim Demaille
9f467b7d84
Make gnulib a submodule.
...
* gnulib: New.
* .gitmodules (gnulib): New.
2008-10-28 17:05:48 +01:00
Akim Demaille
e1145ad8bd
Clarify UPDATED use.
...
* doc/bison.texinfo: It refers to the last edition of this file,
not to the release date of Bison.
Reported by Joel E. Denny.
2008-08-29 10:12:23 +02:00
Akim Demaille
0df72d78ff
Update README.
...
* README: Update FAQ pointer.
Reported by Joel E. Denny.
2008-08-29 10:07:04 +02:00
Akim Demaille
6501566813
Check yyerrok in calc.at.
...
* tests/calc.at (calc.y): Use yyerrok on "( error )".
(AT_CHECK_CALC): Add a check that ensures that yyerrok works as
expected.
2008-08-27 10:30:06 +02:00
Akim Demaille
98e26a9201
Support yyerrok in lalr1.cc.
...
YYBACKUP is still to import back into lalr1.cc.
* data/lalr1.cc (yyerrork, yyclearin, YYRECOVERING): Define.
2008-08-27 10:21:31 +02:00