Fix cell [#] to mean # cells.

Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
This commit is contained in:
Todd Strader 2015-12-01 18:23:11 -05:00 committed by Wilson Snyder
parent d56ca25089
commit 57f2fe77ea

View File

@ -2060,7 +2060,7 @@ instnameParen<cellp>:
instRangeE<rangep>:
/* empty */ { $$ = NULL; }
| '[' constExpr ']' { $$ = new AstRange($1,$2,$2->cloneTree(true)); }
| '[' constExpr ']' { $$ = new AstRange($1,new AstConst($1,0),$2); }
| '[' constExpr ':' constExpr ']' { $$ = new AstRange($1,$2,$4); }
;