lalr: offer more flexibility in debugging routines

* src/state.h, src/state.c (state_transitions_print): New, extracted
from...
(state_transitions_set): here.
This commit is contained in:
Akim Demaille
2019-04-03 07:24:56 +02:00
parent 18831f985c
commit 10175e4a65
2 changed files with 19 additions and 11 deletions

View File

@@ -236,6 +236,9 @@ state *state_new_isocore (state const *s);
/* Record that from S we can reach all the DST states (NUM of them). */
void state_transitions_set (state *s, int num, state **dst);
/* Print the transitions of state s for debug. */
void state_transitions_print (const state *s, FILE *out);
/* Set the reductions of STATE. */
void state_reductions_set (state *s, int num, rule **reds);