mojoshader_parser_hlsl.lemon
changeset 704 292ea2611014
parent 703 8bc7b33377e7
child 707 85b648e14089
--- a/mojoshader_parser_hlsl.lemon	Fri Feb 27 00:32:07 2009 -0500
+++ b/mojoshader_parser_hlsl.lemon	Fri Feb 27 00:32:37 2009 -0500
@@ -56,6 +56,10 @@
 %right TYPECAST EXCLAMATION COMPLEMENT MINUSMINUS PLUSPLUS.
 %left DOT LBRACKET RBRACKET LPAREN RPAREN.
 
+// bump up the precedence of ELSE, to avoid shift/reduce conflict on the
+//  usual "dangling else ambiguity" ...
+%right ELSE.
+
 
 // The rules...