progs/fun/fun_llvm.sc
changeset 869 81ee93b87258
parent 819 fd88a0656164
child 870 739039774cee
equal deleted inserted replaced
868:8fb3b6d3be70 869:81ee93b87258
   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