traces: make closure() less verbose

* src/getargs.h, src/getargs.c (trace_closure): New.
* src/closure.c (closure): Use it.
This commit is contained in:
Akim Demaille
2019-04-14 18:08:39 +02:00
parent 4ec413da32
commit 9ad7524659
3 changed files with 5 additions and 2 deletions

View File

@@ -188,6 +188,7 @@ static const char * const trace_args[] =
"parse - grammar parser traces",
"automaton - construction of the automaton",
"bitsets - use of bitsets",
"closure - input/output of closure",
"grammar - reading, reducing the grammar",
"resource - memory consumption (where available)",
"sets - grammar sets: firsts, nullable etc.",
@@ -208,6 +209,7 @@ static const int trace_types[] =
trace_parse,
trace_automaton,
trace_bitsets,
trace_closure,
trace_grammar,
trace_resource,
trace_sets,