Charj : iostream is now included in produced .h files
authorMinas Charalambides <charala1@illinois.edu>
Wed, 2 Jun 2010 02:20:04 +0000 (21:20 -0500)
committerMinas Charalambides <charala1@illinois.edu>
Wed, 2 Jun 2010 02:20:04 +0000 (21:20 -0500)
            std::cout is now used in produced .h files

            AstModifier now works when a .cj file contains
            multiple type definitions

src/langs/charj/src/charj/translator/ClassSymbol.java

index a19d0e4e63fd43b6207fe0b4fb3c936991aef85c..3468ef29d922f97ea70c01f3f67e903fd1a28969 100644 (file)
@@ -55,6 +55,8 @@ public class ClassSymbol extends SymbolWithScope implements Scope {
         this.usings.add("std::vector");
         this.includes.add("map");
         this.usings.add("std::map");
         this.usings.add("std::vector");
         this.includes.add("map");
         this.usings.add("std::map");
+        this.includes.add("iostream");
+        this.usings.add("std::cout");
     }
 
     public Scope getEnclosingScope() {
     }
 
     public Scope getEnclosingScope() {