Commit Graph

837 Commits

Author SHA1 Message Date
Akim Demaille
6deb44470e Since we now use obstacks, more % directives can be enabled.
* src/lex.c (percent_table): Also accept `%yacc',
`%fixed_output_files', `%defines', `%no_parser', `%verbose', and
`%debug'.
Handle the actions for `%semantic_parser' and `%pure_parser' here,
instead of returning a token.
* src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
* src/reader.c (read_declarations): Adjust.
* src/files.c (open_files): Don't call `compute_base_names', don't
compute `attrsfile' since they depend upon data which might be
*in* the input file now.
(output_files): Do it here.
* src/output.c (output_headers): Document the fact that this patch
introduces a guaranteed SEGV for semantic parsers.
* doc/bison.texinfo: Document them.
* tests/suite.at: Exercise these %options.
2001-01-18 14:47:09 +00:00
Akim Demaille
705db0b507 Hopefully added to the repository all the distributed files. 2001-01-15 13:46:43 +00:00
Akim Demaille
14ded68250 * doc/bison.texinfo: Various typos spotted by Neil Booth. 2000-10-04 12:52:25 +00:00
Akim Demaille
89cab50df1 The location tracking mechanism is precious for parse error
messages.  Nevertheless, it is enabled only when `@n' is used in
the grammar, which is a different issue (you can use it in error
message, but not in the grammar per se).  Therefore, there should
be another means to enable it.
* src/getargs.c (getargs): Support `--locations'.
(usage): Report it.
* src/getargs.h (locationsflag): Export it.
* src/lex.c (percent_table): Support `%locations'.
* src/reader.c (yylsp_needed): Remove this variable, now replaced
with `locationsflag'.
* doc/bison.texinfo: Document `--locations' and `%locations'.
Sort the options.
* tests/calc.m4: Test it.
For regularity of the names, replace each
(nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
(no_lineflag, token_tableflag, rawflag, no_parserflag): this.
In addition replace each `flag' with `_flag'.
2000-10-02 10:20:59 +00:00
Jesse Thilo
d5796688b1 Print contents near beginning, not at the end. 2000-09-27 23:59:22 +00:00
Akim Demaille
ceed8467b7 * src/output.c: Formatting changes.
* src/machine.h: Remove, leaving its contents in...
* src/system.h: here.
Include stdio.h.
Adjust all dependencies on stdio.h and machine.h.
* src/getargs.h: New file.
Let all `extern' declarations about getargs.c be replaced with
inclusion of `getargs.h'.
* src/Makefile.am (noinst_HEADERS): Adjust.

* tests/calc.m4 (yyin): Be initialized in main, not on the global
scope.
(yyerror): Returns void, not int.
* doc/bison.texinfo: Formatting changes.
2000-09-19 18:10:41 +00:00
Akim Demaille
1386333308 * doc/bison.texinfo: Update the copyright.
ANSIfy and GNUify the examples.
Remove the old menu.
2000-09-18 13:24:27 +00:00
Jesse Thilo
ff2ecbaee1 # mentioned NLS. 1999-12-13 07:41:54 +00:00
Jesse Thilo
9ecbd1257c Tweaked spelling and grammar.
Updated ISBN.
Removed reference to price of printed copy.
Mention BISON_SIMPLE and BISON_HAIRY.
1999-12-13 07:38:05 +00:00
Jesse Thilo
649d71cc96 Added reference card. 1999-10-27 21:05:41 +00:00
Jesse Thilo
6d42748fae Dropped mention of `+' for long-named options. 1999-06-08 19:00:57 +00:00
Jesse Thilo
0f3e47c1b3 # minor changes 1999-05-30 13:58:02 +00:00
Jesse Thilo
66a69320b2 Added a FAQ list. 1999-05-30 13:12:28 +00:00
Jesse Thilo
8ebbae2a91 Reorganized: sources in src', documentation in doc'. 1999-04-18 16:29:23 +00:00
Jesse Thilo
2d97f5ccb7 Fix formatting glitch. 1999-01-14 15:08:17 +00:00
Jesse Thilo
c49a8e71ce Update FSF address. 1999-01-14 14:58:38 +00:00
Jesse Thilo
0308924772 Delete comment "consider using @set for edition number, etc..." since
we now are doing so.
1998-12-30 05:24:00 +00:00
Jesse Thilo
bd773d7399 Add info dir entry. 1998-11-28 21:44:16 +00:00
Jesse Thilo
df1af54c81 Let automake put version number into documentation. 1998-11-28 21:30:44 +00:00
Jesse Thilo
9e4e995adb Document the BISON_HAIRY and BISON_SIMPLE variables. 1998-11-26 00:14:37 +00:00
Jesse Thilo
6f515a274e Clean up some formatting. 1998-11-25 22:11:01 +00:00
Richard M. Stallman
70811b851d Explain better why to make a pure parser. 1998-05-05 22:18:45 +00:00
Daniel Hagerty
23ae3b48e4 Fixed update date 1995-11-29 01:26:22 +00:00
Richard M. Stallman
931c751390 Describe literal string tokens, %raw, %no_lines, %token_table. 1995-11-29 01:22:34 +00:00
Richard M. Stallman
333ccc01a4 Add new options. 1995-10-16 14:12:23 +00:00
Jim Meyering
95e742f778 *** empty log message *** 1995-06-01 13:54:23 +00:00
Richard M. Stallman
a31239f1bb Rewrite "Conditions for Using Bison".
Update version to 1.24.
1995-05-03 15:13:10 +00:00
Richard M. Stallman
c656404a43 entered into RCS 1993-11-21 22:03:08 +00:00
Richard M. Stallman
e425e87207 *** empty log message *** 1993-11-21 10:25:13 +00:00
David MacKenzie
2a2e87dbe0 *** empty log message *** 1993-10-25 23:45:06 +00:00
David MacKenzie
5378c3e72c *** empty log message *** 1993-09-14 20:43:31 +00:00
Richard M. Stallman
5fcfb6e7fb entered into RCS 1993-09-10 12:10:14 +00:00
David MacKenzie
ff51d159dd *** empty log message *** 1993-06-26 20:09:41 +00:00
David MacKenzie
a641b0dac1 Initial revision 1993-06-26 20:00:26 +00:00
Richard M. Stallman
0189fd923d *** empty log message *** 1993-06-03 20:24:26 +00:00
Richard M. Stallman
bfa7497605 Initial revision 1993-05-19 03:41:36 +00:00
Richard M. Stallman
22a89eeddc entered into RCS 1992-06-22 04:07:24 +00:00