equal
deleted
inserted
replaced
160 } |
160 } |
161 |
161 |
162 // the main compilation function |
162 // the main compilation function |
163 def compile(prog: List[Decl], class_name: String) : String = { |
163 def compile(prog: List[Decl], class_name: String) : String = { |
164 val instructions = prog.map(compile_decl).mkString |
164 val instructions = prog.map(compile_decl).mkString |
165 (library + instructions).replaceAllLiterally("XXX", class_name) |
165 (library + instructions).replace("XXX", class_name) |
166 } |
166 } |
167 |
167 |
168 |
168 |
169 // pre-2.5.0 ammonite |
169 // pre-2.5.0 ammonite |
170 // import ammonite.ops._ |
170 // import ammonite.ops._ |