Allow strings as indexers

refs #7566
This commit is contained in:
Gunnar Beutner 2014-11-04 15:22:10 +01:00
parent a6f20c7a22
commit c1cbe157db
1 changed files with 3 additions and 3 deletions

View File

@ -520,13 +520,13 @@ identifier_items_inner: /* empty */
}
;
indexer: T_IDENTIFIER
indexer: identifier
{
$$ = new Array();
$$->Add(MakeLiteral($1));
free($1);
}
| T_IDENTIFIER indexer_items
| identifier indexer_items
{
$$ = $2;
$$->Insert(0, MakeLiteral($1));
@ -547,7 +547,7 @@ indexer_items: indexer_item
}
;
indexer_item: '.' T_IDENTIFIER
indexer_item: '.' identifier
{
$$ = new Value(MakeLiteral($2));
free($2);