summaryrefslogtreecommitdiff
path: root/src/state.h
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-04-03 07:24:56 +0200
committerAkim Demaille <akim.demaille@gmail.com>2019-04-03 07:29:54 +0200
commit10175e4a6590ba4d29941d49a67d0f9d0012884f (patch)
tree64a8f09d032184b9e356ef6b7254166fc05d1c1c /src/state.h
parent18831f985c76bd141189e34e7410a5ac508300b1 (diff)
downloadbison-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.h3
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);