Paul Eggert
88510f9c07
%parse-param and %lex-param now take just one argument, the
...
declaration; the argument name is deduced from the declaration.
2002-11-29 08:45:33 +00:00
Paul Eggert
da90e18c6e
(Simple LALR Calculator): Adopt new convention for %parse-param
...
and %lex-param.
2002-11-29 08:45:14 +00:00
Paul Eggert
763ed7a687
"," now elicits a warning, rather than being
...
a token; this is more compatible with byacc.
2002-11-29 08:44:40 +00:00
Paul Eggert
1773ceee65
(add_param): New function.
...
(COMMA): Remove.
(declaration): Implement new rule for %parse-param and %lex-param.
2002-11-29 08:44:04 +00:00
Paul Eggert
feeb0edaf1
(Parser Function, Pure Calling, Error Reporting, Table of Symbols):
...
%parse-param and %lex-param now take just one argument, the
declaration; the argument name is deduced from the declaration.
2002-11-29 08:43:12 +00:00
Paul Eggert
78c3da9e09
(reader): Remove gram_control; it wasn't being used.
2002-11-29 05:59:59 +00:00
Paul Eggert
4f39538148
Sync with gnulib.
2002-11-28 00:42:28 +00:00
Paul Eggert
bb92250c78
Rename identifiers to avoid real and potential collisions.
2002-11-27 18:36:41 +00:00
Paul Eggert
41141c568e
(STEP): Renamed from YY_STEP. All uses changed.
...
(STRING_GROW): Renamed from YY_OBS_GROW. All uses changed.
(STRING_FINISH): Renamed from YY_OBS_FINISH. All uses changed.
(STRING_FREE): Renamed from YY_OBS_FREE. All uses changed.
2002-11-27 18:34:14 +00:00
Paul Eggert
f6d03984ae
(struct gram_control_s, gram_control_t): Remove.
...
(YY_DECL): Don't use "yy" at start of local variables.
All uses changed, e.g., yylloc -> loc.
2002-11-27 18:33:42 +00:00
Paul Eggert
ad8a3efc5a
(print_token_value): Renamed from yyprint.
...
All uses changed.
(YYPARSE_PARAM, YYLEX_PARAM, yycontrol): Remove. All uses changed.
The name "yycontrol" violates the name space rules, and this stuff
wasn't being used anyway.
(input): Remove action; this stuff wasn't being used.
(gram_error): Rename local variable yylloc -> loc.
2002-11-27 18:33:18 +00:00
Paul Eggert
831d3c996d
yyprint -> print_token_value
2002-11-27 18:32:12 +00:00
Paul Eggert
136d65300d
(_AT_CHECK_PRINTER_AND_DESTRUCTOR): yyout -> yyoutput,
...
to avoid collision with lex macro described by Bruce Lilly in
<http://mail.gnu.org/pipermail/bug-bison/2002-November/001929.html >.
2002-11-27 18:31:27 +00:00
Paul Eggert
14740648d5
(b4_yysymprint_generate): yyout -> yyoutput,
...
to avoid collision with lex macro described by Bruce Lilly in
<http://mail.gnu.org/pipermail/bug-bison/2002-November/001929.html >.
2002-11-27 18:30:50 +00:00
Paul Eggert
08cae37b47
Update version to 1.75d.
2002-11-25 08:21:40 +00:00
Paul Eggert
ceed6cdce5
Regenerate.
2002-11-25 08:05:09 +00:00
Paul Eggert
3af4feb22f
Version 1.75c.
2002-11-25 07:56:44 +00:00
Paul Eggert
dda7aa54b6
Sync with gnulib.
2002-11-25 07:50:25 +00:00
Paul Eggert
16f37b35a5
(Actions after errors): Use an output format
...
more similar to that of the Printers and Destructors test.
Test the position of the ';' token too.
(Printers and Destructors): Likewise.
(Printers and Destructors: %glr-parser): Remove for now, to avoid
unnecessarily alarming people when the test fails.
2002-11-25 07:36:54 +00:00
Paul Eggert
300a796626
(yyerrlab1): Move this label down, so that the
...
parser does not discard the lookahead token if the user code
invokes YYERROR. This change is required for POSIX conformance.
2002-11-25 06:42:10 +00:00
Paul Eggert
f6cf0f6e5f
Sync with gnulib.
2002-11-23 07:25:41 +00:00
Paul Eggert
69e16b4c5e
Sync with gnulib again.
2002-11-22 00:30:58 +00:00
Paul Eggert
0368ae1269
Sync with gnulib.
2002-11-21 19:14:24 +00:00
Paul Eggert
580043087e
* lib/argmatch.c, lib/argmatch.h: Sync with gnulib.
...
Avoid use of <assert.h>, as the GNU Coding Standards hint that one
should use `if (! x) abort ();' rather than `assert (x);', and
anyway it's one less thing to worry about configuring.
2002-11-21 07:37:24 +00:00
Paul Eggert
6f5db56451
Sync with gnulib.
2002-11-21 07:35:58 +00:00
Paul Eggert
500bbfcd81
(_AT_TEST_GLR_CXXTYPES): Do not include <assert.h>.
...
Replace all instances of assert with abort.
2002-11-21 05:28:44 +00:00
Paul Eggert
63d0fb9ce4
(_AT_DATA_CALC_Y): Do not include <assert.h>.
...
Replace all instances of assert with abort.
2002-11-21 05:28:09 +00:00
Paul Eggert
7a86d7eba9
(_AT_CHECK_PRINTER_AND_DESTRUCTOR): Do not include <assert.h>.
2002-11-21 05:27:28 +00:00
Paul Eggert
4344c500b5
(get_color_str, get_textmode_str, get_shape_str,
...
get_layoutalgorithm_str, get_decision_str, get_orientation_str,
get_node_alignement_str, get_arrow_mode_str, get_crossing_type_str,
get_view_str, get_linestyle_str, get_arrowstyle_str): Use abort rather
than assert.
2002-11-21 05:26:41 +00:00
Paul Eggert
443594d0c4
(conflict_row, pack_vector): Use abort rather than assert.
...
(tables_generate): Use verify rather than assert.
2002-11-21 05:25:55 +00:00
Paul Eggert
87aabbff99
Do not include <assert.h>.
...
(verify): New macro.
2002-11-21 05:24:53 +00:00
Paul Eggert
2f82502a6f
(symbol_user_token_number_set, symbol_make_alias, symbol_pack):
...
Use abort rather than assert.
2002-11-21 05:23:46 +00:00
Paul Eggert
fe22d5d20f
(struniq_assert): Now returns void, and aborts if the assertion is false.
2002-11-21 05:22:29 +00:00
Paul Eggert
ec14f0c83f
(state_new, state_free, state_transitions_set, state_reduction_find):
...
Use abort rather than assert.
2002-11-21 05:21:35 +00:00
Paul Eggert
35dcf428c9
(packgram, reader): Use abort rather than assert.
2002-11-21 05:20:49 +00:00
Paul Eggert
a932883e41
(prepare_rules, token_definitions_output): Use abort rather than assert.
2002-11-21 05:20:05 +00:00
Paul Eggert
b475e0cce5
(nullable_compute): Use abort rather than assert.
2002-11-21 05:18:57 +00:00
Paul Eggert
58a84254ef
(set_goto_map, map_goto): Use abort rather than assert.
2002-11-21 05:18:08 +00:00
Paul Eggert
7223426a2b
(trace_argmatch, report_argmatch): Use verify rather than assert.
2002-11-21 05:17:21 +00:00
Paul Eggert
b9a0104860
(resolve_sr_conflict): Use abort rather than assert.
2002-11-21 05:16:36 +00:00
Paul Eggert
937fd8646f
Do not include <assert.h>.
...
(hash_lookup, hash_get_first, hash_get_next,
hash_find_entry, hash_rehash, hash_insert): Likewise.
2002-11-21 05:15:52 +00:00
Paul Eggert
b973108e1e
(ARRAY_CARDINALITY): Do not bother to #undef.
...
(ARGMATCH_CONSTRAINT): New macro.
(ARGMATCH_ASSERT): Use it.
2002-11-21 05:12:27 +00:00
Paul Eggert
51dffcbca9
Do not include <assert.h>.
...
(yydoAction, yyglrReduce, yysplitStack, yyresolveStates,
yyresolveAction, yyprocessOneStack): Use abort rather than assert.
2002-11-21 05:11:29 +00:00
Paul Eggert
76ae81983c
* data/glr.c (yygetLRActions): Replace `yyindex' with
...
`yytable[yyindex]' to fix typo introduced in my 2002-11-09 patch.
This fixes the regression with Sun ONE Studio 7 cc that I reported in
<http://mail.gnu.org/pipermail/bug-bison/2002-November/001892.html >.
2002-11-19 09:33:21 +00:00
Paul Eggert
df38312ab0
(yygetLRActions): Replace `yyindex' with
...
`yytable[yyindex]' to fix typo introduced in my 2002-11-09 patch.
This fixes the regression with Sun ONE Studio 7 cc that I reported in
<http://mail.gnu.org/pipermail/bug-bison/2002-November/001892.html >.
2002-11-19 07:35:29 +00:00
Paul Eggert
8d8a7238ee
Pacify Sun ONE Studio 7 lint. Also, rename "ParseError"
...
to "SyntaxError" for consistency with my 2002-11-15 change.
2002-11-18 20:08:57 +00:00
Akim Demaille
d3c4e709ff
* doc/bison.texinfo (Tracing): `yyprint' shouldn't prepend a
...
space.
From Tim Van Holder.
2002-11-18 09:33:22 +00:00
Paul Eggert
4e8c79eb7f
(_AT_DATA_CALC_Y): Make vars static instead of
...
extern when possible. Remove unused initializations.
2002-11-18 07:52:13 +00:00
Paul Eggert
ee16363fd2
(YYDPRINTF, YYDSYMPRINT, YYDSYMPRINTF) [!YYDEBUG]: Do not define to
...
{}, since this breaks the common use of `YYDPRINTF ((...));' if a
single statement is desired (e.g. before `else'). Work around GCC
warnings by surrounding corresponding calls with {} if needed.
(yyhasResolvedValue): Remove unused function.
(yymergeOptionSets, yyresolvStack): Use `continue;' for empty
loop body.
(yyreportSyntaxError): Renamed from yyreportParseError.
(yyrecoverSyntaxError): Renamed from yyrecoverParseError.
All uses changed.
2002-11-18 07:51:47 +00:00
Akim Demaille
60a3dcf956
Really remove it.
2002-11-16 12:36:30 +00:00