add -fsyntax-only

When debugging Bison itself, this is very handy, especially when
tweaking the frontend badly enough to break the backends. It can also
be used to check a grammar.

* src/getargs.h, src/getargs.c (feature_syntax_only): New.
(feature_args, feature_types): Adjust.
* src/main.c (main): Use it.
This commit is contained in:
Akim Demaille
2019-01-27 07:51:07 +01:00
parent a108d84f88
commit 9cd7bd4d5f
5 changed files with 23 additions and 6 deletions

6
NEWS
View File

@@ -2,6 +2,12 @@ GNU Bison NEWS
* Noteworthy changes in release ?.? (????-??-??) [?]
** New features
*** Disabling output
When given -fsyntax-only, the diagnostics are reported, but no output is
generated.
* Noteworthy changes in release 3.3.1 (2019-01-27) [stable]