


def test_string(prog: String, cname: String) = {
  val tks = tokenise(prog)
  //println(tks)
  val ast = Stmts.parse_all(tks).head
  //println(ast)
  val code = compile(ast, cname)
  //println(code)
  os.write.over(os.pwd / (cname ++ ".j"), code)
  //println(eval(ast))
}
