X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/8efe435c059af57671105fd8671ba97bb8474264..febef6caeca3c31c336edd636609d9f4ec865452:/src/gram.h?ds=inline diff --git a/src/gram.h b/src/gram.h index ff43ab8f..b0f9daef 100644 --- a/src/gram.h +++ b/src/gram.h @@ -168,15 +168,29 @@ extern int max_user_token_number; extern int pure_parser; -/* Report the length of the RHS. */ +/* Return the length of the RHS. */ int rule_rhs_length PARAMS ((rule_t *rule)); +/* Print this RULE's RHS on OUT. */ +void rule_rhs_print PARAMS ((rule_t *rule, FILE *out)); + +/* Print this RULE on OUT. */ +void rule_print PARAMS ((rule_t *rule, FILE *out)); + /* Dump RITEM for traces. */ void ritem_print PARAMS ((FILE *out)); /* Return the size of the longest rule RHS. */ size_t ritem_longest_rhs PARAMS ((void)); +/* Print the grammar's rules numbers from BEGIN (inclusive) to END + (exclusive) on OUT under TITLE. */ +void grammar_rules_partial_print PARAMS ((FILE *out, const char *title, + int begin, int end)); + +/* Print the grammar's rules on OUT. */ +void grammar_rules_print PARAMS ((FILE *out)); + /* Dump the grammar. */ void grammar_dump PARAMS ((FILE *out, const char *title));