mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Remove the so called hairy (semantic) parsers.
* src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove. * src/gram.h, src/gram.c (semantic_parser): Remove. (rule_t): Remove the guard and guard_line members. * src/lex.h (token_t): remove tok_guard. * src/options.c (option_table): Remove %guard and %semantic_parser support. * src/output.c, src/output.h (guards_output): Remove. (prepare): Adjust. (token_definitions_output): Don't output the `T' tokens (???). (output_skeleton): Don't output the guards. * src/files.c, src/files.c (attrsfile): Remove. * src/reader.c (symbol_list): Remove the guard and guard_line members. Adjust dependencies. (parse_guard): Remove. * data/bison.hairy: Remove. * doc/bison.texinfo (Environment Variables): Remove occurrences of BISON_HAIRY.
This commit is contained in:
@@ -5233,7 +5233,6 @@ the output graph filename.
|
||||
@node Environment Variables
|
||||
@section Environment Variables
|
||||
@cindex environment variables
|
||||
@cindex BISON_HAIRY
|
||||
@cindex BISON_SIMPLE
|
||||
|
||||
Here is a list of environment variables which affect the way Bison
|
||||
@@ -5241,18 +5240,11 @@ runs.
|
||||
|
||||
@table @samp
|
||||
@item BISON_SIMPLE
|
||||
@itemx BISON_HAIRY
|
||||
Much of the parser generated by Bison is copied verbatim from a file
|
||||
called @file{bison.simple}. If Bison cannot find that file, or if you
|
||||
would like to direct Bison to use a different copy, setting the
|
||||
environment variable @code{BISON_SIMPLE} to the path of the file will
|
||||
cause Bison to use that copy instead.
|
||||
|
||||
When the @samp{%semantic-parser} declaration is used, Bison copies from
|
||||
a file called @file{bison.hairy} instead. The location of this file can
|
||||
also be specified or overridden in a similar fashion, with the
|
||||
@code{BISON_HAIRY} environment variable.
|
||||
|
||||
@end table
|
||||
|
||||
@node Option Cross Key
|
||||
|
||||
Reference in New Issue
Block a user