Paul Eggert
ba20a26459
(Torturing the Scanner): Adjust to lack of quotes in diagnostics.
2005-04-17 08:12:56 +00:00
Paul Eggert
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.
2005-04-17 08:07:15 +00:00
Paul Eggert
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.
2005-04-16 08:11:52 +00:00
Paul Eggert
f79b4f5ce1
(AT_INCREASE_DATA_SIZE): Skip the test if
...
the data size is known to be too small and we can't increase it.
2005-04-16 08:11:33 +00:00
Paul Eggert
2ce37586de
Regenerate.
2005-04-16 06:34:20 +00:00
Paul Eggert
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.
2005-04-16 06:32:51 +00:00
Paul Eggert
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.
2005-04-16 06:25:03 +00:00
Paul Eggert
ffc9da3a52
Regenerate.
2005-04-14 00:09:11 +00:00
Paul Eggert
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.
2005-04-14 00:08:56 +00:00
Paul Eggert
a749a69501
Fix aliases bug reported by Tim Van Holder.
2005-04-12 22:38:43 +00:00
Paul Eggert
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.
2005-04-12 22:38:20 +00:00
Paul Eggert
e59adf8f04
(Typed symbol aliases): New test.
2005-04-12 22:35:53 +00:00
Paul Eggert
8fb1053bfe
* tests/regression.at (Token definitions): Don't use a token named c.
2005-03-26 01:13:13 +00:00
Paul Eggert
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.
2005-03-26 01:12:59 +00:00
Paul Eggert
ff498c4aed
* bootstrap: Change translation URL.
2005-03-21 22:36:41 +00:00
Paul Eggert
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.
2005-03-21 06:58:31 +00:00
Paul Eggert
72d848c21d
(AT_COMPILE, AT_COMPILE_CXX): Don't put options
...
after operands; POSIX says this isn't portable for the c99 command.
2005-03-21 06:58:11 +00:00
Paul Eggert
9577fb1f47
* tests/glr-regression.at (glr-regr2a.y): Try to dump core
...
immediately if a data overrun has occurred.
2005-03-18 20:57:37 +00:00
Paul Eggert
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.
2005-03-18 20:57:19 +00:00
Paul Eggert
a2599d0fc2
Respond to problems reported by twlevo@xs4all.nl.
2005-03-17 23:42:57 +00:00
Paul Eggert
727e8b0bde
Use "trap - 0" rather than the unportable "trap 0".
2005-03-17 23:41:38 +00:00
Paul Eggert
4b3017faf2
Regenerate.
2005-03-17 19:22:00 +00:00
Paul Eggert
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.
2005-03-17 19:20:15 +00:00
Paul Eggert
baf073c6c5
(yyparse): Omit spaces before #line.
...
Problem reported by twlevo@xs4all.nl .
2005-03-17 19:19:44 +00:00
Paul Eggert
7296e729ce
* src/tables.c (state_number_to_vector_number): Put it inside an
...
"#if 0".
2005-03-15 23:53:47 +00:00
Paul Eggert
7cf96b1a9e
(state_number_to_vector_number): Put it inside an
...
"#if 0", since it's not currently used.
2005-03-15 23:53:27 +00:00
Paul Eggert
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 >.
* src/muscle_tab.c (muscle_code_grow): Don't quote numbers; it's
not needed.
* src/output.c (user_actions_output, token_definitions_output,
symbol_destructors_output, symbol_printers_output): Likewise.
* src/reader.c (prologue_augment): Likewise.
* src/scan-gram.l (handle_action_dollar, handle_action_at): Likewise.
2005-03-07 06:41:39 +00:00
Paul Eggert
080e734812
(output_edge): Don't quote linestyle arg.
2005-03-07 06:35:31 +00:00
Paul Eggert
7eb453acd5
* doc/bison.texinfo (Semantic Tokens): Fix scoping problem in
...
example, reported by Derek M Jones.
2005-03-01 00:41:58 +00:00
Paul Eggert
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.
2005-03-01 00:41:33 +00:00
Paul Eggert
4c04c52a9d
* doc/bison.texinfo (Mfcalc Symtab): Correct the prototype for putsym.
2005-02-24 17:24:23 +00:00
Paul Eggert
a730d142be
(Mfcalc Symtab): Correct the prototype for putsym.
2005-02-24 17:23:57 +00:00
Paul Eggert
a61e1620e7
* doc/bison.texinfo: minor typo fixes
2005-02-23 09:15:27 +00:00
Paul Eggert
e4f85c39b2
(Language and Grammar): some -> same
...
(Epilogue): int he -> in the
2005-02-23 09:15:09 +00:00
Paul Eggert
9ec93868c1
Fix $ in test names.
2005-02-08 00:37:43 +00:00
Paul Eggert
d46c3fc694
Renamed from "Invalid \$n", to work around an Autoconf bug with dollar
...
signs in test names.
2005-02-07 23:14:55 +00:00
Paul Eggert
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.
2005-02-07 23:14:22 +00:00
Paul Eggert
73ce7e7e63
* src/vcg.c (output_graph): G_VIEW -> normal_view.
2005-01-28 22:07:09 +00:00
Paul Eggert
f8b30d02ec
(output_graph): G_VIEW -> normal_view in case someone
...
wants to redefine G_VIEW.
2005-01-28 22:06:55 +00:00
Paul Eggert
2e72b98ed8
* src/vcg.c (get_view_str): Remove case for normal_view.
2005-01-27 22:03:21 +00:00
Paul Eggert
a8999f947d
(get_view_str): Remove case for normal_view.
2005-01-27 22:03:07 +00:00
Paul Eggert
ccf830a458
* configure.ac (O0CFLAGS, O0CXXFLAGS): Fix quoting bug.
2005-01-24 23:48:11 +00:00
Paul Eggert
9b9642fca4
(O0CFLAGS, O0CXXFLAGS): Fix quoting bug.
2005-01-24 23:47:49 +00:00
Paul Eggert
e0d634e5c3
* doc/bison.texinfo: Change @dircategory from "GNU programming
...
tools" to "Software development".
2005-01-24 23:26:33 +00:00
Paul Eggert
e62f1a8991
Change @dircategory from "GNU programming tools" to "Software development".
2005-01-24 23:26:17 +00:00
Paul Eggert
7bbc8cb035
* tests/c++.at (AT_CHECK_DOXYGEN): Don't use options after operands.
2005-01-23 08:38:33 +00:00
Paul Eggert
38989c080e
(AT_CHECK_DOXYGEN): Don't use options after operands.
2005-01-23 08:37:35 +00:00
Paul Eggert
b4fb989f02
Regenerate.
2005-01-21 19:29:25 +00:00
Paul Eggert
08b770bc1b
* data/yacc.c (YYCOPY, yystpcpy, yyparse): Remove "register".
2005-01-21 19:12:51 +00:00
Paul Eggert
cb530ce9e2
(YYCOPY, yystpcpy, yyparse): Remove "register".
2005-01-21 19:12:32 +00:00