1.1 --- a/src/compiler/Parser.cpp Sat Nov 17 22:02:08 2012 -0800
1.2 +++ b/src/compiler/Parser.cpp Sat Nov 17 23:11:38 2012 -0800
1.3 @@ -881,6 +881,12 @@
1.4 if (!typeAndName(&type, name.ref()))
1.5 return NULL;
1.6
1.7 + ExpressionList *dims = NULL;
1.8 + if (match(TOK_LBRACE)) {
1.9 + if ((dims = dimensions()) == NULL)
1.10 + return NULL;;
1.11 + }
1.12 +
1.13 SourcePosition pos = scanner_.begin();
1.14
1.15 Expression *expr = NULL;
1.16 @@ -899,7 +905,7 @@
1.17 }
1.18 }
1.19
1.20 - return new (pool_) VariableDeclaration(pos, qual, name, type, expr);
1.21 + return new (pool_) VariableDeclaration(pos, qual, name, type, dims, expr);
1.22 }
1.23
1.24 Statement *