]> git.saurik.com Git - bison.git/commit - src/lex.c
Since we now use obstacks, more % directives can be enabled.
authorAkim Demaille <akim@epita.fr>
Thu, 18 Jan 2001 14:47:09 +0000 (14:47 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 18 Jan 2001 14:47:09 +0000 (14:47 +0000)
commit6deb44470e47bb02f0ca3ea630408d013e128710
tree74ff9ef0b2a6eb62bce4e0d53edb6358284b0bf3
parentdde188fc644dbef884801b7a7cffa9830d8f3f80
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.
14 files changed:
ChangeLog
NEWS
doc/bison.info
doc/bison.info-3
doc/bison.info-4
doc/bison.info-5
doc/bison.texinfo
doc/stamp-vti
src/files.c
src/lex.c
src/lex.h
src/output.c
src/reader.c
tests/suite.at