summaryrefslogtreecommitdiff
path: root/src/ielr.c
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-02-24 19:00:41 +0100
committerAkim Demaille <akim.demaille@gmail.com>2019-02-25 06:19:54 +0100
commit59bec5fade53bb6d84754457b43b49e037616a48 (patch)
tree4fa2d8acc0a677874a469629f8b4232791841e96 /src/ielr.c
parent5230e610fc4b5e0599c1bf1edda24faa227213f5 (diff)
downloadbison-59bec5fade53bb6d84754457b43b49e037616a48.tar.gz
lalr: more debug traces
I need to be able to read includes and goto_follows. * src/relation.h, src/relation.c (relation_print): Provide a means to pretty-print the nodes of the relation. * src/lalr.c (goto_print, follows_print): New. (set_goto_map): Use goto_print. (build_relations): Show INCLUDES. (compute_FOLLOWS): Rename as... (compute_follows): this. Show FOLLOWS.
Diffstat (limited to 'src/ielr.c')
-rw-r--r--src/ielr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ielr.c b/src/ielr.c
index 47ce38c3..a1f146b9 100644
--- a/src/ielr.c
+++ b/src/ielr.c
@@ -198,7 +198,7 @@ ielr_compute_internal_follow_edges (bitset ritem_sees_lookahead_set,
if (trace_flag & trace_ielr)
{
fprintf (stderr, "internal_follow_edges:\n");
- relation_print (*edgesp, ngotos, stderr);
+ relation_print (*edgesp, ngotos, NULL, stderr);
}
}
@@ -305,7 +305,7 @@ ielr_compute_always_follows (goto_number ***edgesp,
if (trace_flag & trace_ielr)
{
fprintf (stderr, "always follow edges:\n");
- relation_print (*edgesp, ngotos, stderr);
+ relation_print (*edgesp, ngotos, NULL, stderr);
fprintf (stderr, "always_follows:\n");
debug_bitsetv (*always_followsp);
}