From: NeilBrown Date: Sun, 21 Jul 2013 08:20:00 +0000 (+1000) Subject: parsergen: make sure we continue making states until all done. X-Git-Tag: draftparser~2 X-Git-Url: https://ocean-lang.org/code/?p=ocean;a=commitdiff_plain;h=a4b7d9c77f5f91d660c0f64ae5bbdee6eb53fb2a parsergen: make sure we continue making states until all done. Whenever we add a state, we need to check again, as it might have been added early in the list. There is probably a much more efficient way to do this.... Signed-off-by: NeilBrown --- diff --git a/csrc/parsergen.mdc b/csrc/parsergen.mdc index 7b917b4..78a9a72 100644 --- a/csrc/parsergen.mdc +++ b/csrc/parsergen.mdc @@ -1296,6 +1296,7 @@ with `TK_eof` as the LA set. if (is->completed) continue; is->completed = 1; + again = 1; ## complete itemset ## derive itemsets symset_free(done);