diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-04-03 07:24:56 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-04-03 07:29:54 +0200 |
commit | 10175e4a6590ba4d29941d49a67d0f9d0012884f (patch) | |
tree | 64a8f09d032184b9e356ef6b7254166fc05d1c1c /src/state.h | |
parent | 18831f985c76bd141189e34e7410a5ac508300b1 (diff) | |
download | bison-10175e4a6590ba4d29941d49a67d0f9d0012884f.tar.gz |
lalr: offer more flexibility in debugging routines
* src/state.h, src/state.c (state_transitions_print): New, extracted
from...
(state_transitions_set): here.
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state.h b/src/state.h index 605d7e1d..031d959b 100644 --- a/src/state.h +++ b/src/state.h @@ -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); |