From b0047ce7ac589181a63394b523fe6c054cb9c9ff Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Tue, 29 May 2018 10:59:09 -0400 Subject: [PATCH] Assign precedence and associativity to ELSE reduces shift/reduce conflicts from 37 to 25 --- tiger/src/lib/tiger/tiger_parser.mly | 1 + 1 file changed, 1 insertion(+) 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 -- 2.20.1