From: Jean Privat Date: Wed, 9 Sep 2015 09:28:21 +0000 (-0400) Subject: nitcc: detect S/R even if R/R conflict as a solution is to shift in case of S/R/R X-Git-Tag: v0.7.8~38^2~4 X-Git-Url: http://nitlanguage.org nitcc: detect S/R even if R/R conflict as a solution is to shift in case of S/R/R Signed-off-by: Jean Privat --- diff --git a/contrib/nitcc/src/grammar.nit b/contrib/nitcc/src/grammar.nit index 0a10beb..b3b2c6b 100644 --- a/contrib/nitcc/src/grammar.nit +++ b/contrib/nitcc/src/grammar.nit @@ -1001,7 +1001,8 @@ class LRState if a.length > 1 then print "REDUCE/REDUCE Conflict on state {self.number} {self.name} for token {t}:" for i in a do print "\treduce: {i}" - else if guarded_shift.has_key(t) then + end + if guarded_shift.has_key(t) then var ri = a.first var confs = new Array[Item] var ress = new Array[String]