From a9ad34c8db0299a0a12964910633e02f5868e12d Mon Sep 17 00:00:00 2001 From: ceriel Date: Mon, 18 Apr 1988 11:06:55 +0000 Subject: [PATCH] fixed a bug: did not handle %while in FIXED terms --- util/LLgen/src/LLgen.g | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/LLgen/src/LLgen.g b/util/LLgen/src/LLgen.g index b2b0b6e6c..2e4993541 100644 --- a/util/LLgen/src/LLgen.g +++ b/util/LLgen/src/LLgen.g @@ -319,7 +319,8 @@ simpleproduction(p_gram *p; register int *conflres;) { if (g_gettype(&elem) == TERM) { 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) { while (g_gettype(q->t_rule) != EORULE) { *p_rule++ = *q->t_rule++;