Variable declarations can have empty array bounds, like "float x[] = {a,b,c};"
authorRyan C. Gordon <icculus@icculus.org>
Tue, 25 Aug 2009 23:44:04 -0400
changeset 789 10a36d0c418c
parent 788 9f4d32456f78
child 790 0cf8abbbc9fa
Variable declarations can have empty array bounds, like "float x[] = {a,b,c};"
mojoshader_parser_hlsl.lemon
--- a/mojoshader_parser_hlsl.lemon	Tue Aug 25 23:40:10 2009 -0400
+++ b/mojoshader_parser_hlsl.lemon	Tue Aug 25 23:44:04 2009 -0400
@@ -196,6 +196,7 @@
 variable_lowlevel ::= packoffset.
 variable_lowlevel ::= register.
 
+scalar_or_array ::= identifier LBRACKET RBRACKET.
 scalar_or_array ::= identifier LBRACKET expression RBRACKET.
 scalar_or_array ::= identifier.