X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/3067fbef531832df1e43bbd28787655808361eed..1fa140687eb4ae093904366f4cb1563bbb47e63a:/src/gram.h diff --git a/src/gram.h b/src/gram.h index 516907c2..fc860386 100644 --- a/src/gram.h +++ b/src/gram.h @@ -122,6 +122,8 @@ typedef struct rule_s short assoc; short line; bool useful; + const char *action; + short action_line; } rule_t; extern struct rule_s *rule_table; @@ -150,5 +152,9 @@ extern int error_token_number; /* Dump RITEM for traces. */ -void ritem_print (FILE *out); +void ritem_print PARAMS ((FILE *out)); + +/* Return the size of the longest rule RHS. */ +size_t ritem_longest_rhs PARAMS ((void)); + #endif /* !GRAM_H_ */