progs/while/compile.sc
changeset 816 2b6e23985982
parent 815 f56d18757526
child 828 bdcaecdee9eb
equal deleted inserted replaced
815:f56d18757526 816:2b6e23985982
   218     os.write.over(os.pwd / s"$class_name.j", code)
   218     os.write.over(os.pwd / s"$class_name.j", code)
   219     os.proc("java", "-jar", "jasmin.jar", s"$class_name.j").call()
   219     os.proc("java", "-jar", "jasmin.jar", s"$class_name.j").call()
   220     os.proc("java", s"$class_name/$class_name").call(stdout = os.Inherit, stdin = os.Inherit)
   220     os.proc("java", s"$class_name/$class_name").call(stdout = os.Inherit, stdin = os.Inherit)
   221 }
   221 }
   222 
   222 
       
   223 
   223 @main
   224 @main
   224 def test2() =
   225 def test2() =
   225   run(fib_test, "fib")
   226   run(fib_test, "fib")
   226 
       
   227 
   227 
   228 
   228 
   229 /* Jasmin code for reading an integer
   229 /* Jasmin code for reading an integer
   230 
   230 
   231 .method public static read()I 
   231 .method public static read()I