nitcc:: when removing a reduction in S/R, notify the token to not generate the reduce...
authorJean Privat <jean@pryen.org>
Wed, 9 Sep 2015 09:30:52 +0000 (05:30 -0400)
committerJean Privat <jean@pryen.org>
Wed, 9 Sep 2015 09:30:52 +0000 (05:30 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

contrib/nitcc/src/grammar.nit

index b3b2c6b..095072e 100644 (file)
@@ -1045,6 +1045,7 @@ class LRState
                end
                for t in removed_reduces do
                        guarded_reduce.keys.remove(t)
+                       t.reduces.remove(self)
                end
        end