From: Siraaj Khandkar Date: Tue, 29 May 2018 14:59:09 +0000 (-0400) Subject: Assign precedence and associativity to ELSE X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=b0047ce7ac589181a63394b523fe6c054cb9c9ff;p=tiger.ml.git Assign precedence and associativity to ELSE reduces shift/reduce conflicts from 37 to 25 --- diff --git a/tiger/src/lib/tiger/tiger_parser.mly b/tiger/src/lib/tiger/tiger_parser.mly index e23fad0..625632f 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 */ +%left ELSE %nonassoc ASSIGN %left OF DO %left OR