charj: Fix array element access template in postanalysis
authorAaron Becker <akbecker@gmail.com>
Tue, 19 Jun 2012 15:19:34 +0000 (10:19 -0500)
committerAaron Becker <akbecker@gmail.com>
Tue, 19 Jun 2012 15:19:34 +0000 (10:19 -0500)
src/langs/charj/src/charj/translator/CharjPostAnalysis.g

index fe83eba08f46aff036bcff164ce5c1171bff9363..d740862f7659031827f6d2bce05c41f53d251303 100644 (file)
@@ -656,7 +656,7 @@ entryPrimaryExpression
     |   ^(METHOD_CALL primaryExpression genericTypeArgumentList? arguments)
     |   ^(ENTRY_METHOD_CALL primaryExpression genericTypeArgumentList? entryArguments)
     |   explicitConstructorCall
-    |   ^(ARRAY_ELEMENT_ACCESS primaryExpression expression)
+    |   ^(ARRAY_ELEMENT_ACCESS primaryExpression domainExpression)
     |   literal
     |   newExpression
         ->  ^(POINTER_DEREFERENCE newExpression)