equal
deleted
inserted
replaced
262 // main compiler functions |
262 // main compiler functions |
263 def compile(prog: List[Decl]) : String = |
263 def compile(prog: List[Decl]) : String = |
264 prelude ++ (prog.map(compile_decl).mkString) |
264 prelude ++ (prog.map(compile_decl).mkString) |
265 |
265 |
266 |
266 |
267 import ammonite.ops._ |
267 // pre-2.5.0 ammonite |
|
268 // import ammonite.ops._ |
|
269 |
|
270 // post 2.5.0 ammonite |
|
271 import $ivy.`com.lihaoyi::os-lib:0.8.0` |
268 |
272 |
269 |
273 |
270 @main |
274 @main |
271 def main(fname: String) = { |
275 def main(fname: String) = { |
272 val path = os.pwd / fname |
276 val path = os.pwd / fname |