]> ocean-lang.org Git - ocean/commitdiff
parsergen: make sure we continue making states until all done.
authorNeilBrown <neilb@suse.de>
Sun, 21 Jul 2013 08:20:00 +0000 (18:20 +1000)
committerNeilBrown <neilb@suse.de>
Sun, 21 Jul 2013 08:20:00 +0000 (18:20 +1000)
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 <neilb@suse.de>
csrc/parsergen.mdc

index 7b917b408d3cd7193504863dabca86b5a299918f..78a9a72f18abdd97f0085854c9a57a803acb4873 100644 (file)
@@ -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);