Charj : added AST nodes to support pointers and references
[charm.git] / src / langs / charj / src / charj / translator / CharjSemantics.g
index 9bd9b2939a98f1ec090b7edad616ad2d146715a5..7cc3e65ed5ae14992ee5c87ee1a2983c24123981 100644 (file)
@@ -256,11 +256,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