Fixed struct declaration in the HLSL parser grammar.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 06 Mar 2009 23:19:40 -0500
changeset 726 9f58e2b0ed8a
parent 725 5e3c35b63abd
child 727 6978fac0fa31
Fixed struct declaration in the HLSL parser grammar.
mojoshader_parser_hlsl.lemon
--- a/mojoshader_parser_hlsl.lemon	Fri Mar 06 23:06:39 2009 -0500
+++ b/mojoshader_parser_hlsl.lemon	Fri Mar 06 23:19:40 2009 -0500
@@ -170,7 +170,10 @@
 struct_member ::= interpolation_mod struct_member_details.
 struct_member ::= struct_member_details.
 
-struct_member_details ::= scalar_or_array identifier SEMICOLON.
+struct_member_details ::= datatype struct_member_item_list SEMICOLON.
+
+struct_member_item_list ::= identifier.
+struct_member_item_list ::= struct_member_item_list COMMA identifier.
 
 typedef_statement ::= TYPEDEF CONST datatype scalar_or_array.
 typedef_statement ::= TYPEDEF datatype scalar_or_array.