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

tiger/src/lib/tiger/tiger_parser.mly

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