From: Siraaj Khandkar Date: Tue, 29 May 2018 14:57:47 +0000 (-0400) Subject: Assign precedence to ASSIGN X-Git-Url: https://git.xandkar.net/?p=tiger.ml.git;a=commitdiff_plain;h=c7598faf75e8c27dcf2019dac47e56841af1f569 Assign precedence to ASSIGN reduces shift/reduce conflicts from 49 to 37 --- diff --git a/tiger/src/lib/tiger/tiger_parser.mly b/tiger/src/lib/tiger/tiger_parser.mly index af0d30c..e23fad0 100644 --- a/tiger/src/lib/tiger/tiger_parser.mly +++ b/tiger/src/lib/tiger/tiger_parser.mly @@ -49,6 +49,7 @@ %token WHILE /* from lowest precedence */ +%nonassoc ASSIGN %left OF DO %left OR %left AND