Assign precedence and associativity to OF and DO
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 29 May 2018 14:56:17 +0000 (10:56 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 29 May 2018 14:56:17 +0000 (10:56 -0400)
reduces shift/reduce conflicts from 85 to 49

tiger/src/lib/tiger/tiger_parser.mly

index e8d32f6..af0d30c 100644 (file)
@@ -49,6 +49,7 @@
 %token WHILE
 
 /* from lowest precedence */
+%left OF DO
 %left OR
 %left AND
 %nonassoc EQ NEQ GT LT GE LE
This page took 0.024671 seconds and 4 git commands to generate.