Paul Eggert
3192f9ece7
Update from Bruno Haible's 2003-04-14 patch to gnulib.
2003-04-22 03:33:01 +00:00
Paul Eggert
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)
2003-04-21 19:37:40 +00:00
Paul Eggert
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 >)
2003-04-21 19:37:09 +00:00
Paul Eggert
1b8f2fff2a
Don't invoke unput from scan-gram.l; it ran into a POSIX-compatibility
...
bug in flex 2.5.31.
2003-04-18 07:27:15 +00:00
Paul Eggert
47e7600a21
(Invalid inputs): Remove cascaded diagnostic that is no longer emitted.
2003-04-18 07:26:46 +00:00
Paul Eggert
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.
2003-04-18 07:26:19 +00:00
Paul Eggert
5ededac618
Fix regression reported by Werner Lemberg in
...
<http://mail.gnu.org/archive/html/bug-bison/2003-04/msg00026.html >.
2003-04-18 05:11:25 +00:00
Paul Eggert
2740f1691f
(GNU pic Grammar): New test case, taken from
...
<http://mail.gnu.org/archive/html/bug-bison/2003-04/msg00026.html >.
2003-04-18 05:10:58 +00:00
Paul Eggert
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 >.
(resolve_sr_conflict): Don't invoke state_errs_set
unless one or more tokens have been explicitly made errors.
Otherwise, the above change causes Bison to abort.
2003-04-18 05:07:08 +00:00
Akim Demaille
b8be913233
* doc/Makefile.am (AM_MAKEINFOFLAGS): Don't split the info file.
2003-03-31 09:46:21 +00:00
Akim Demaille
d423d46080
* src/output.c (prepare_symbols): Avoid trailing spaces in the
...
output.
2003-03-31 09:17:40 +00:00
Akim Demaille
c7e441b49c
* doc/bison.texinfo (Strings are Destroyed): s/losses/loses/.
...
From Paul Hilfinger.
2003-03-31 07:10:44 +00:00
Akim Demaille
231897ad21
* m4/error.m4: Do not put under dynamic conditions some code which
...
expansion is under static control.
2003-03-29 13:50:44 +00:00
Akim Demaille
22a74fece3
Restore a missing ChangeLog entry.
2003-03-29 13:30:15 +00:00
Akim Demaille
5b06606339
* doc/bison.texinfo (How Can I Reset @code{yyparse}): New.
2003-03-29 13:29:41 +00:00
Akim Demaille
fef4cb511e
* .cvsignore: Add configure.lineno.
...
* src/.cvsignore: Add yacc.
* tests/.cvsignore: Add testsuite.log.
* doc/fdl.texi: Sync with latest FSF version.
2003-03-29 11:26:46 +00:00
Akim Demaille
265d1ec403
Regen.
2003-03-29 11:09:49 +00:00
Paul Eggert
0eee27e7b7
Update .cvsignore files.
2003-03-14 01:35:43 +00:00
Paul Eggert
0eadf43ccc
Add testsuite.log
2003-03-14 01:31:24 +00:00
Paul Eggert
5fa179f52b
Add configure.lineno.
2003-03-14 01:26:51 +00:00
Paul Eggert
9986d7a732
Add 'yacc'.
2003-03-14 01:23:04 +00:00
Paul Eggert
ae5895dd3a
Bump serial number.
2003-03-13 21:21:13 +00:00
Paul Eggert
ab8fe29d0c
Sync with latest FSF version.
2003-03-13 19:34:42 +00:00
Paul Eggert
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.
2003-03-13 07:13:05 +00:00
Paul Eggert
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 >.
2003-03-13 07:07:17 +00:00
Paul Eggert
4a99c66490
Update copyright.
2003-03-13 07:05:44 +00:00
Paul Eggert
0baf7c50ed
(Torturing the Scanner): Test the scanner on
...
an empty input file, which was Tim Van Holder's test case.
2003-03-13 07:03:17 +00:00
Paul Eggert
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 >.
2003-03-13 00:25:33 +00:00
Paul Eggert
8012adae7b
(BISON_PREREQ_SUBPIPE): Don't AC_CHECK_HEADERS([sys/wait.h]), as this
...
interferes with AC_HEADER_SYS_WAIT.
2003-03-13 00:01:07 +00:00
Paul Eggert
f61aad9399
Merge changes from gnulib. This was prompted because the CVS
...
snapshot of Bison didn't build on Solaris 7 due to strnlen problems.
2003-03-12 23:08:11 +00:00
Paul Eggert
4f8a9f6dba
Include <limits.h> unconditionally. We have been
...
assuming at least C89 in the bitset code for some time now.
2003-03-12 23:01:22 +00:00
Paul Eggert
e13bcfbbbd
Sync with gnulib.
2003-03-10 07:41:31 +00:00
Paul Eggert
6f7d430291
Propagate from gnulib.
2003-03-10 07:35:12 +00:00
Akim Demaille
650aa2cfbf
Regen.
2003-03-03 09:00:12 +00:00
Akim Demaille
d2ffe11637
* ro.po: New.
2003-03-03 08:59:34 +00:00
Akim Demaille
052826fdd1
* doc/bison.texinfo (Table of Symbols): Reactivate the
...
documentation for %lex-param, and %parse-param.
2003-03-02 15:11:43 +00:00
Akim Demaille
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.
2003-03-02 13:39:44 +00:00
Akim Demaille
d5286af19b
* tests/regression.at (_AT_DATA_DANCER_Y): Fix the expected error
...
message.
2003-03-02 13:36:55 +00:00
Akim Demaille
95b52400d5
Typo.
2003-03-02 11:27:59 +00:00
Akim Demaille
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.
2003-03-02 11:22:19 +00:00
Akim Demaille
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.
2003-03-02 11:14:07 +00:00
Paul Eggert
9c2b381f79
Minor improvements to today's scan-gram.l bugfix.
2003-03-02 06:56:06 +00:00
Paul Eggert
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.
2003-03-02 06:55:15 +00:00
Akim Demaille
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.
2003-03-01 10:55:31 +00:00
Akim Demaille
6d5aa694aa
Regen.
2003-03-01 08:31:06 +00:00
Paul Eggert
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 >.
2003-02-28 09:02:12 +00:00
Paul Eggert
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 >.
2003-02-28 09:00:22 +00:00
Paul Eggert
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.
2003-02-26 21:27:11 +00:00
Paul Eggert
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.
2003-02-26 21:26:28 +00:00
Paul Eggert
c267ffbced
yylineno -> yylno to avoid collision with flex.
...
Sync depcomp with Automake 1.7.3.
2003-02-25 07:58:42 +00:00