equal
deleted
inserted
replaced
163 |
163 |
164 // pre-2.5.0 ammonite |
164 // pre-2.5.0 ammonite |
165 // import ammonite.ops._ |
165 // import ammonite.ops._ |
166 |
166 |
167 // post 2.5.0 ammonite |
167 // post 2.5.0 ammonite |
168 import $ivy.`com.lihaoyi::os-lib:0.8.0` |
168 // import os._ |
169 |
169 |
170 def compile_to_file(prog: List[Decl], class_name: String) : Unit = |
170 def compile_to_file(prog: List[Decl], class_name: String) : Unit = |
171 write.over(pwd / s"$class_name.j", compile(prog, class_name)) |
171 write.over(pwd / s"$class_name.j", compile(prog, class_name)) |
172 |
172 |
173 def compile_and_run(prog: List[Decl], class_name: String) : Unit = { |
173 def compile_and_run(prog: List[Decl], class_name: String) : Unit = { |