diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-01-27 07:51:07 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-01-28 06:47:07 +0100 |
commit | 9cd7bd4d5fb5032b2ce2c4e26c4bd0a0baeb708a (patch) | |
tree | f8a1e2678d75fee063e25363a92e4c9dcaac4852 /src/getargs.h | |
parent | a108d84f883df77c5c32ae8875406f669d7fe38d (diff) | |
download | bison-9cd7bd4d5fb5032b2ce2c4e26c4bd0a0baeb708a.tar.gz |
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.
Diffstat (limited to 'src/getargs.h')
-rw-r--r-- | src/getargs.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/getargs.h b/src/getargs.h index c5adb848..f630d0f5 100644 --- a/src/getargs.h +++ b/src/getargs.h @@ -114,10 +114,11 @@ extern int trace_flag; enum feature { - feature_none = 0, /**< No additional feature. */ - feature_caret = 1 << 0, /**< Output errors with carets. */ - feature_fixit_parsable = 1 << 1, /**< Issue instructions to fix the sources. */ - feature_all = ~0 /**< All above features. */ + feature_none = 0, /**< No additional feature. */ + feature_caret = 1 << 0, /**< Output errors with carets. */ + feature_fixit_parsable = 1 << 1, /**< Issue instructions to fix the sources. */ + feature_syntax_only = 1 << 2, /**< Don't generate output. */ + feature_all = ~0 /**< All above features. */ }; /** What additional features to use. */ extern int feature_flag; |