mojoshader_parser_hlsl.lemon
changeset 854 65e06097e450
parent 848 8ff6c5d37d33
child 855 575a443074af
--- a/mojoshader_parser_hlsl.lemon	Mon Feb 22 12:43:55 2010 -0500
+++ b/mojoshader_parser_hlsl.lemon	Tue Feb 23 11:34:36 2010 -0500
@@ -509,7 +509,7 @@
 while_intro(A) ::= LBRACKET UNROLL LPAREN INT_CONSTANT(B) RPAREN RBRACKET WHILE. { A = (B.i64 < 0) ? 0 : B.i64; }
 while_intro(A) ::= LBRACKET UNROLL RBRACKET WHILE. { A = -1; }
 while_intro(A) ::= LBRACKET LOOP RBRACKET WHILE. { A = 0; }
-while_intro(A) ::= WHILE. { A = -1; }
+while_intro(A) ::= WHILE. { A = -2; }
 
 %type for_statement { Statement * }
 %destructor for_statement { delete_statement(ctx, $$); }
@@ -519,7 +519,7 @@
 for_intro(A) ::= LBRACKET UNROLL LPAREN INT_CONSTANT(B) RPAREN RBRACKET FOR. { A = (B.i64 < 0) ? 0 : B.i64; }
 for_intro(A) ::= LBRACKET UNROLL RBRACKET FOR. { A = -1; }
 for_intro(A) ::= LBRACKET LOOP RBRACKET FOR. { A = 0; }
-for_intro(A) ::= FOR. { A = -1; }
+for_intro(A) ::= FOR. { A = -2; }
 
 %type for_details { Statement * }
 %destructor for_details { delete_statement(ctx, $$); }
@@ -540,7 +540,7 @@
 do_intro(A) ::= LBRACKET UNROLL LPAREN INT_CONSTANT(B) RPAREN RBRACKET DO. { A = (B.i64 < 0) ? 0 : (int) B.i64; }
 do_intro(A) ::= LBRACKET UNROLL RBRACKET DO. { A = -1; }
 do_intro(A) ::= LBRACKET LOOP RBRACKET DO. { A = 0; }
-do_intro(A) ::= DO. { A = -1; }
+do_intro(A) ::= DO. { A = -2; }
 
 %type if_intro { int }
 if_intro(A) ::= LBRACKET BRANCH RBRACKET IF. { A = IFATTR_BRANCH; }