mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53:03 +00:00
style: factor printing of rules
* src/gram.h, src/gram.c (rule_print): New. Use it.
This commit is contained in:
@@ -248,6 +248,9 @@ size_t rule_rhs_length (rule const *r);
|
||||
/* Print this rule's RHS on OUT. */
|
||||
void rule_rhs_print (rule const *r, FILE *out);
|
||||
|
||||
/* Print this rule on OUT. If a PREVIOUS_RULE was already displayed,
|
||||
avoid useless repetitions of their LHS. */
|
||||
void rule_print (rule const *r, rule const *prev_rule, FILE *out);
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user