Charj : added AST nodes to support pointers and references
[charm.git] / src / langs / charj / src / charj / translator / CharjASTModifier.g
index 1c582a8d6ba0a1af4c2b2642afe5e94738227995..91b7272f0e669393a18a586f6a18d3686d4a3248 100644 (file)
@@ -171,11 +171,13 @@ type
     ;
 
 simpleType
-    :   ^(TYPE primitiveType arrayDeclaratorList?)
+    :   ^(SIMPLE_TYPE primitiveType arrayDeclaratorList?)
     ;
     
 objectType
-    :   ^(TYPE qualifiedTypeIdent arrayDeclaratorList?)
+    :   ^(OBJECT_TYPE qualifiedTypeIdent arrayDeclaratorList?)
+    |   ^(REFERENCE_TYPE qualifiedTypeIdent arrayDeclaratorList?)
+    |   ^(POINTER_TYPE qualifiedTypeIdent arrayDeclaratorList?)
     ;
 
 qualifiedTypeIdent