Marc Autret
897668ee8d
* src/bison.simple: Don't hard code the skeleton line and filename.
...
* src/output.c (output_parser): Rename 'line' as 'output_line'.
New line counter 'skeleton_line' (skeleton-line muscle).
2001-12-17 20:28:51 +00:00
Marc Autret
fbc8ecb7ef
* src/output.c (actions_output): Fix. When we use %no-lines,
...
there is one less line per action.
2001-12-16 01:45:19 +00:00
Marc Autret
f0440388e9
* src/bison.simple: Remove a useless #line directive.
...
s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
* src/output.c (get_lines_number): New.
(output_parser): Adjust, now takes care about the lines of a
output muscles.
Fix line numbering.
(actions_output): Computes the number of lines taken by actions.
(output_master_parser): Insert new skeleton which is the name of
the output parser file name.
2001-12-16 01:26:25 +00:00
Marc Autret
a79986b830
* src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
2001-12-15 18:38:57 +00:00
Marc Autret
bcb05e75f5
Update.
2001-12-15 17:58:58 +00:00
Marc Autret
4ec8e00f60
* src/output.c (output_gram): Keep track of the hairy one.
2001-12-15 17:34:37 +00:00
Marc Autret
c3a8cbaaad
Update.
2001-12-11 23:03:44 +00:00
Marc Autret
c3995d9998
Update.
2001-12-11 20:21:09 +00:00
Marc Autret
c25fb64881
* src/output.c (output_parser): Remove useless muscle.
2001-12-11 20:19:44 +00:00
Marc Autret
710ddc4f18
* src/bison.simple: Remove #line just before %%epilogue. It
...
is now handled in ...
* src/reader.c (read_additionnal_code): Add the output of a
#line for the epilogue.
2001-12-11 20:10:22 +00:00
Marc Autret
e83d80b8ed
* src/reader.c (copy_definition): Re-use CPP-outed code which
...
replace precedent remove.
* src/bison.simple: Remove #line before %%prologue because
%%input-line is wrong at this time.
2001-12-10 23:19:09 +00:00
Marc Autret
fbbf9b3bb9
Update.
2001-12-10 22:56:40 +00:00
Marc Autret
971d51580b
* src/reader.c (symbols_output): Clean up.
...
* src/output.c (output_gram, output): Clean up.
2001-12-10 22:55:06 +00:00
Marc Autret
04a76783ab
Update.
2001-11-29 20:52:44 +00:00
Marc Autret
147e184ccc
* tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
...
of defining YYERROR_VERBOSE.
[AT_DATA]: $4 is now out of C declarations in the prologue.
2001-11-29 20:48:45 +00:00
Marc Autret
84b113cd22
Update.
2001-11-28 22:31:51 +00:00
Marc Autret
426cf563bd
* src/reader.c (parse_dquoted_param): New.
...
(parse_skel_decl): Use it.
* src/lex.h: Add its prototype.
* src/lex.c (literalchar): Become not static.
2001-11-28 22:28:01 +00:00
Marc Autret
ec93a21372
Update.
2001-11-28 21:31:49 +00:00
Marc Autret
c7925b99cb
* src/output.h: And put its extern declaration here.
...
* src/output.c (error_verbose): Define here.
(prepare): Echo name modification.
* src/getargs.h: Clean its extern declaration.
* src/getargs.c (error_verbose_flag): Remove.
(getargs): Remove case 'e'.
* src/options.c (option_table): 'error-verbose' is now seen as simple
percent option.
Include output.h.
* src/reader.c (read_declarations): Remove case tok_include.
(parse_include_decl): Remove.
* src/lex.h (token_t): Remove tok_include.
* src/options.c (option_table): 'include' is now a simple command line
option.
2001-11-28 21:31:13 +00:00
Marc Autret
5b5d192929
* src/bison.simple: Adjust muscle names.
...
* src/muscle_tab.c (muscle_init): Also rename the muscles.
* src/output.c (prepare): s/_/-/ for the muscles names.
(output_parser): When scanning for a muscle, allow '-' instead of '_'.
2001-11-28 20:32:53 +00:00
Marc Autret
8850be4b1c
* src/bison.simple: Fix debug.
...
[YYERROR_VERBOSE]: Re-integrate as an internal macro.
2001-11-28 19:54:36 +00:00
Marc Autret
b3324f97a8
Update.
2001-11-27 20:56:41 +00:00
Marc Autret
68254a0303
* src/muscle_tab.c (muscle_init): Remove 'verbose' muscle initialization.
...
* src/output.c (prepare): Remove its update.
2001-11-27 20:55:16 +00:00
Marc Autret
d2079671fb
Adjust typo.
2001-11-27 20:47:25 +00:00
Marc Autret
04d843a2a8
* tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
...
Use %error-verbose.
2001-11-27 20:46:12 +00:00
Marc Autret
eeeb962b2f
* src/bison.simple: Remove YYERROR_VERBOSE using.
...
Use %%error_verbose.
(yyparse): Likewise.
* src/output.c (prepare): Give its final value.
* src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
* src/getargs.h: Add its extern declaration.
* src/getargs.c (error_verbose_flag): New int.
(getargs): Update to catch new case.
* src/options.c (option_table): 'error-verbose' is a new option.
(shortopts): Update.
2001-11-27 20:30:13 +00:00
Marc Autret
a12f5cabb2
Update TODO.
2001-11-26 23:23:40 +00:00
Marc Autret
f6bd542788
* src/reader.c (parse_include_decl): New, Not yet implemented.
...
(read_declarations): Add case tok_include.
* src/getargs.h (include): Add its extern definition.
* src/getargs.c (include): New const char *.
(getargs): Add case '-I'.
* src/options.c (option_table): Add include as command line and
percent option.
* src/lex.h (token_t): Add tok_include.
2001-11-26 21:06:22 +00:00
Marc Autret
a220f55509
Revert doc patch.
2001-11-26 19:13:40 +00:00
Marc Autret
b83f0407c6
* doc/bison.texinfo (Mystery Conflicts): Hint '-v' use.
...
From Golubev I. N.
2001-11-25 13:02:55 +00:00
Marc Autret
b497173564
Update.
2001-11-22 22:00:43 +00:00
Marc Autret
a81b1d4ad4
* src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
2001-11-22 22:00:21 +00:00
Marc Autret
c1ecb3c1f5
* src/muscle_tab.c (muscle_init): Remove initialization of
...
skeleton muscle.
* src/output.c (output_master_parser): Do it here.
2001-11-22 21:45:14 +00:00
Marc Autret
5d52e7d045
* src/options.c (create_long_option_table): Fix.
2001-10-15 19:01:12 +00:00
Marc Autret
652def8074
* src/output.c (output_master_parser): New.
...
(output_parser): Be more re-entrant.
2001-09-22 12:18:16 +00:00
Marc Autret
209215672e
Update.
2001-09-21 16:25:59 +00:00
Marc Autret
25b222faf6
* src/reader.c (copy_definition, parse_union_decl): Update and use
...
`linef' muscle.
(copy_action): Likewise.
Use obstack_1grow ().
* src/muscle_tab.c (muscle_init): Add muscle `linef'.
2001-09-21 16:25:19 +00:00
Marc Autret
6bc35ae56a
* src/options.c (option_table): Adjust.
...
* src/lex.c (parse_percent_token): Fix.
2001-09-21 15:42:26 +00:00
Marc Autret
31b53af2fa
Update.
2001-09-21 00:09:28 +00:00
Marc Autret
75f5aaea27
* doc/bison.texinfo: Adjust terminologies about prologue and epilogue
...
sections of Bison.
2001-09-20 18:24:27 +00:00
Marc Autret
f3c383d683
Update.
2001-09-19 15:25:49 +00:00
Marc Autret
714720fcfe
Update
2001-09-02 17:25:48 +00:00
Marc Autret
4766a52862
Regen
2001-09-02 16:21:30 +00:00
Marc Autret
11d82f03b4
* src/reader.c: Include muscle_tab.h.
...
(parse_union_decl): Update.
(parse_macro_decl): Rename parse_muscle_decl.
Update to use renamed functions and variable.
(read_declarations, copy_action, read_additionnal_code, : Updated
with correct variables and functions names.
(packsymbols, reader): Likewise.
* src/reader.h (muscle_obstack): Extern declaration update.
* src/output.c: Include muscle_tab.h
In all functions using macro_insert, change by using muscle_insert ().
(macro_obstack): Rename muscle_obstack.
Echo modifications in the whole file.
(MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
(MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
(MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
* src/muscle_tab.h: Update double inclusion macros.
(macro_entry_s): Rename muscle_entry_s.
Update prototypes.
* src/muscle_tab.c: Include muscle_tab.h.
Rename macro_tabble to muscle_table.
(mhash1, mhash2, mcmp): Use muscle_entry.
(macro_init): Rename muscle_init. Update.
(macro_insert): Rename muscle_insert. Update.
(macro_find): Rename muscle_find. Update.
* src/main.c: Include muscle_tab.h.
(main): Call muscle_init ().
* src/Makefile.am (bison_SOURCES): Echo modifications.
2001-09-02 15:43:29 +00:00
Marc Autret
a0ed1cb86a
Update
2001-09-02 15:43:04 +00:00
Marc Autret
f753cd6292
Add src/muscle_tab.c and src/muscle_tab.h
2001-09-02 15:27:27 +00:00
Marc Autret
93a37297e6
Remove src/macrotab.c and src/macrotab.h
2001-09-02 15:19:49 +00:00
Marc Autret
4134cae3c5
Update
2001-09-01 11:38:12 +00:00
Marc Autret
53cdf751a3
Update
2001-09-01 01:23:21 +00:00
Marc Autret
087c8fdae3
* tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
...
to an explicit value to activate the feature. We do it here.
2001-09-01 01:20:54 +00:00
Marc Autret
6b7d911c5d
Update
2001-08-31 18:46:10 +00:00
Marc Autret
9e644e648d
* src/bison.simple (YYLSP_NEEDED): New definition.
...
* src/output.c (prepare): Add macro insertion of `locations_flag'
2001-08-31 18:30:21 +00:00
Marc Autret
01ed3db59b
Update
2001-08-31 17:07:18 +00:00
Marc Autret
63c2d5de0f
* src/reader.c (read_additionnal_code): Rename %%user_code to
...
%%epilogue.
* src/output.c (output): Rename %%declarations to %%prologue.
* src/bison.simple: Echo modifications.
2001-08-31 16:01:53 +00:00
Marc Autret
675bc4e954
Update
2001-08-31 14:40:06 +00:00
Marc Autret
d8cb51834b
* src/reader.c (readgram): CleanUp.
...
(output_token_defines): Likewise.
(packsymbols): Likewise.
(reader): Likewise.
* src/output.c (output): CPP-out useless code.
2001-08-31 11:47:08 +00:00
Marc Autret
c111e171cd
Update
2001-08-31 00:26:05 +00:00
Marc Autret
416bd7a9f3
New file
2001-08-30 00:44:59 +00:00
Marc Autret
997b6fd0c7
Adjust
2001-08-30 00:44:14 +00:00
Marc Autret
2ba3b73c58
* src/reader.c (parse_skel_decl): New.
...
(read_declarations): Add case `tok_skel', call parse_skel_decl ().
* src/lex.h (token_t): New token `tok_skel'.
* src/lex.c (percent_table): Add skeleton option entry.
Standardize.
2001-08-30 00:41:37 +00:00
Marc Autret
ff48177d25
* src/bison.simple: Add %%user_code directive at the end.
...
* src/reader.c (read_additionnal_code): New.
(reader): Use it.
* src/output.c (output_program): Remove.
(output): Update.
2001-08-29 14:17:00 +00:00
Marc Autret
4e5caae2c6
Adjust
2001-08-28 20:55:58 +00:00
Marc Autret
b33160bf45
* src/output.c (output_actions): Clean up.
...
* src/reader.c (reader): Clean up, CPP-out useless code.
2001-08-28 20:48:17 +00:00
Marc Autret
2b763dfe15
* config/depcomp: New file.
2001-08-28 17:53:07 +00:00
Marc Autret
40a64a7a48
Adjust
2001-08-25 18:38:03 +00:00
Marc Autret
4ecbf79698
Turn on %{source,header}_extension features.
...
* src/lex.c (percent_table): Un-CPP out header_extension and
source_extension.
* src/files.c (compute_exts_from_gf): Compare pointers with NULL.
(compute_exts_from_src): Remove conditions. It restores priorities
between options.
2001-08-14 11:28:48 +00:00
Marc Autret
95fb566259
* src/files.c (compute_base_names): Add extensions computing when
...
`--file-prefix' used.
Standardize function calls.
2001-08-14 10:38:12 +00:00
Marc Autret
78d09da9a5
* src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
...
defining it (defined but null disables alloca).
2001-08-13 21:37:22 +00:00
Marc Autret
5a009f2c4c
* src/bison.simple (_yy_memcpy): CPP reformat.
2001-08-13 21:10:10 +00:00
Marc Autret
09a6de7e50
* src/print_graph.h: Fix.
...
* src/reader.c (read_declarations): Use parse_header_extension_decl ().
2001-08-10 10:44:44 +00:00
Marc Autret
6f42a3e682
* doc/bison.texinfo (Locations): Update @$ stuff.
2001-08-10 08:40:02 +00:00
Marc Autret
f1c63ceddc
* doc/bison.texinfo (Locations): Update @$ stuff.
2001-08-10 08:16:14 +00:00
Marc Autret
3e259915e1
* doc/bison.texinfo (Locations): Update @$ stuff.
2001-08-09 22:35:26 +00:00
Marc Autret
ca96bc2d17
* src/bison.simple (YYLLOC_DEFAULT): Update.
...
(yyparse): Adjust.
2001-08-09 19:59:29 +00:00
Marc Autret
fd6b609da9
Adjust
2001-08-09 09:59:08 +00:00
Marc Autret
08a161353c
Update.
2001-08-08 23:16:44 +00:00
Marc Autret
fdc6758b79
doc/bison.texinfo: Change @samp{$<@dots{}>} to @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
2001-08-08 21:55:36 +00:00
Marc Autret
957d4dbf16
ChangeLog: Adjust.
2001-08-08 21:23:04 +00:00
Marc Autret
600cad3b84
VCG updates
2001-08-08 20:31:21 +00:00