* src/LR0.c (new_state, get_state): Complete TRACE code.

* src/closure.c: Include `reader.h' to get `tags', needed by the
trace code.
Rename the conditional DEBUG as TRACE.
Output consistently TRACEs to stderr, not stdout.
* src/derives.c: Likewise.
* src/reduce.c: (inaccessable_symbols): Using if is better style
than goto.
Use `#if TRACE' instead of `#if 0' for tracing code.
This commit is contained in:
Akim Demaille
2001-11-19 09:16:24 +00:00
parent 377bd7c9a2
commit 8639df64a6
5 changed files with 67 additions and 68 deletions

View File

@@ -242,7 +242,8 @@ get_state (int symbol)
int n;
#if TRACE
fprintf (stderr, "Entering get_state, symbol = %d\n", symbol);
fprintf (stderr, "Entering get_state, state = %d, symbol = %d\n",
nstates, symbol);
#endif
isp1 = kernel_base[symbol];