Fixed HLSL parsing of structs with array fields.
authorRyan C. Gordon <icculus@icculus.org>
Sat, 22 Aug 2009 19:46:49 -0400
changeset 777 5ab8bb0ac2af
parent 776 1b3498c2339e
child 778 a43d07e5da68
Fixed HLSL parsing of structs with array fields.
mojoshader_parser_hlsl.lemon
--- a/mojoshader_parser_hlsl.lemon	Sun Aug 16 17:00:32 2009 -0400
+++ b/mojoshader_parser_hlsl.lemon	Sat Aug 22 19:46:49 2009 -0400
@@ -171,7 +171,7 @@
 
 struct_member_details ::= datatype struct_member_item_list SEMICOLON.
 
-struct_member_item_list ::= identifier.
+struct_member_item_list ::= scalar_or_array.
 struct_member_item_list ::= struct_member_item_list COMMA identifier.
 
 typedef_statement ::= TYPEDEF CONST datatype scalar_or_array.