Internals: bisonpre: Support -Wcounterexamples

This commit is contained in:
Wilson Snyder 2024-09-23 21:42:02 -04:00
parent 685ea0bc65
commit 5a65d27851

View File

@ -29,6 +29,7 @@ def process():
+ (" -d" if Args.definitions else "") #
+ (" -k" if Args.token_table else "") #
+ (" -v" if Args.verbose else "") #
+ (" -Wcounterexamples" if Args.Wcounterexamples else "") #
+ (" --report=itemset --report=lookahead" if (Args.verbose and supports_report) else "")
# Useful but slow:
# (" -Wcounterexamples" if
@ -509,6 +510,7 @@ parser.add_argument('-o',
parser.add_argument('-p', '--name-prefix', action='store', help='Passed to bison.')
parser.add_argument('-t', '--debug', action='store_true', help='Passed to bison.')
parser.add_argument('-v', '--verbose', action='store_true', help='Passed to bison.')
parser.add_argument('-Wcounterexamples', action='store_true', help='Passed to bison.')
parser.add_argument('input', help='Passed to bison. Input grammar file.')