Assign precedence and associativity to ELSE
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 29 May 2018 14:59:09 +0000 (10:59 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 29 May 2018 15:03:04 +0000 (11:03 -0400)
reduces shift/reduce conflicts from 37 to 25

tiger/src/lib/tiger/tiger_parser.mly

index e23fad0..625632f 100644 (file)
@@ -49,6 +49,7 @@
 %token WHILE
 
 /* from lowest precedence */
+%left ELSE
 %nonassoc ASSIGN
 %left OF DO
 %left OR
This page took 0.018226 seconds and 4 git commands to generate.