fixed a bug: did not handle %while in FIXED terms

This commit is contained in:
ceriel 1988-04-18 11:06:55 +00:00
parent ba88529f50
commit a9ad34c8db

View file

@ -319,7 +319,8 @@ simpleproduction(p_gram *p; register int *conflres;)
{ if (g_gettype(&elem) == TERM) { { if (g_gettype(&elem) == TERM) {
register p_term q = g_getterm(&elem); register p_term q = g_getterm(&elem);
if (g_gettype(q->t_rule) != ALTERNATION && if (! (q->t_flags & RESOLVER) &&
g_gettype(q->t_rule) != ALTERNATION &&
g_gettype(q->t_rule) != EORULE) { g_gettype(q->t_rule) != EORULE) {
while (g_gettype(q->t_rule) != EORULE) { while (g_gettype(q->t_rule) != EORULE) {
*p_rule++ = *q->t_rule++; *p_rule++ = *q->t_rule++;