+/* Attach a SYMBOL to the current rule. If needed, move the previous
+ action as a mid-rule action. */
+
+static void
+grammar_current_rule_symbol_append (symbol_t *symbol)
+{
+ if (current_rule->action)
+ grammar_midrule_action ();
+ ++nritems;
+ grammar_symbol_append (symbol);
+}
+
+
+/* Attach an ACTION to the current rule. If needed, move the previous
+ action as a mid-rule action. */
+
+static void
+grammar_current_rule_action_append (char *action, int action_line)
+{
+ if (current_rule->action)
+ grammar_midrule_action ();
+ current_rule->action = action;
+ current_rule->action_line = action_line;
+}
+
+
+