mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 14:23:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user