lalr: print the 'reads' relation

* src/relation.h, src/relation.c (relation_print): Accept and use a
title.
Don't print empty rows.
Indent the output.
Adjust dependencies.
* src/lalr.c (initialize_goto_follows): Print 'reads' in traces.
This commit is contained in:
Akim Demaille
2019-02-26 06:55:07 +01:00
parent 5255b919ae
commit a415a78d71
4 changed files with 25 additions and 31 deletions

View File

@@ -36,7 +36,8 @@ typedef relation_nodes *relation;
typedef void (relation_node_print) (relation_node node, FILE* out);
/* Report a relation R that has SIZE vertices. */
void relation_print (relation r, size_t size,
void relation_print (const char *title,
relation r, size_t size,
relation_node_print print, FILE *out);
/* Compute the transitive closure of the FUNCTION on the relation R