Charj : added AST nodes to support pointers and references
[charm.git] / src / langs / charj / src / charj / translator / Charj.stg
index 88e04103b3824653cb7e481cfd7ffa2bafb64037..e30c561e9b0848b17ee1f0ab19887acf54964ef3 100644 (file)
@@ -267,7 +267,7 @@ local_var_decl(modList, type, declList) ::=
 >>
 
 
-type(typeID, arrDeclList) ::=
+simple_type(typeID, arrDeclList) ::=
 <<
 <typeID><arrDeclList>
 >>
@@ -275,9 +275,19 @@ type(typeID, arrDeclList) ::=
 
 obj_type(typeID, arrDeclList) ::=
 <<
+<typeID><arrDeclList>
+>>
+
+pointer_type(typeID, arrDeclList) ::=
+<<
 <typeID>*<arrDeclList>
 >>
 
+reference_type(typeID, arrDeclList) ::=
+<<
+<typeID>&<arrDeclList>
+>>
+
 
 typeIdent(typeID, generics) ::=
 <<