mojoshader_parser_hlsl.lemon
changeset 975 95b03c82cf51
parent 973 6d4cdbc21301
child 976 72f121a58548
--- a/mojoshader_parser_hlsl.lemon	Wed Jan 12 03:44:28 2011 -0500
+++ b/mojoshader_parser_hlsl.lemon	Wed Jan 12 03:39:21 2011 -0500
@@ -175,6 +175,7 @@
 %destructor variable_declaration { delete_variable_declaration(ctx, $$); }
 variable_declaration(A) ::= variable_attribute_list(B) datatype(C) variable_declaration_details_list(D) SEMICOLON. { REVERSE_LINKED_LIST(MOJOSHADER_astVariableDeclaration, D); A = D; A->attributes = B; A->datatype = C; }
 variable_declaration(A) ::= datatype(B) variable_declaration_details_list(C) SEMICOLON. { REVERSE_LINKED_LIST(MOJOSHADER_astVariableDeclaration, C); A = C; A->datatype = B; }
+// !!! FIXME: this expects "struct Identifier {} varname" ... that "Identifier" is wrong.
 variable_declaration(A) ::= struct_declaration(B) variable_declaration_details_list(C) SEMICOLON. { REVERSE_LINKED_LIST(MOJOSHADER_astVariableDeclaration, C); A = C; A->anonymous_datatype = B; }
 
 %type variable_attribute_list { int }