progs/glue.sc
changeset 863 d59bcff69998
parent 861 f5709803272b
child 902 b40aaffe0793
equal deleted inserted replaced
862:3ea5ba4bc3b4 863:d59bcff69998
    44     val path = os.pwd / fname
    44     val path = os.pwd / fname
    45     val class_name = fname.stripSuffix("." ++ path.ext)
    45     val class_name = fname.stripSuffix("." ++ path.ext)
    46     val tks = tokenise(os.read(path))
    46     val tks = tokenise(os.read(path))
    47     val ast = parse_tks(tks)
    47     val ast = parse_tks(tks)
    48     compile_to_file(ast, class_name)
    48     compile_to_file(ast, class_name)
    49     os.proc("java", s"${class_name}/${class_name}").call(stdout = os.Inherit)
    49     os.proc("java", s"${class_name}/${class_name}").call(stdout = os.Inherit, stdin = os.Inherit)
    50     println(s"done.")
    50     println(s"done.")
    51 }
    51 }
    52 
    52 
    53 
    53