mojoshader_parser_hlsl.lemon
changeset 917 85afb474f99d
parent 910 3ee487d85ecb
child 919 eeb5decdf548
--- a/mojoshader_parser_hlsl.lemon	Wed Oct 13 17:29:28 2010 -0400
+++ b/mojoshader_parser_hlsl.lemon	Wed Oct 13 17:56:41 2010 -0400
@@ -345,8 +345,8 @@
 
 %type statement_block { Statement * }
 %destructor statement_block { delete_statement(ctx, $$); }
-statement_block(A) ::= LBRACE RBRACE. { A = new_empty_statement(ctx); }
-statement_block(A) ::= LBRACE statement_list(B) RBRACE. { REVERSE_LINKED_LIST(Statement, B); A = B; }
+statement_block(A) ::= LBRACE RBRACE. { A = new_block_statement(ctx, NULL); }
+statement_block(A) ::= LBRACE statement_list(B) RBRACE. { REVERSE_LINKED_LIST(Statement, B); A = new_block_statement(ctx, B); }
 
 %type statement_list { Statement * }
 %destructor statement_list { delete_statement(ctx, $$); }