cw5_marking/c3_add.sc
changeset 978 8778d23fef92
equal deleted inserted replaced
977:1e6eca42d90b 978:8778d23fef92
       
     1 
       
     2 
       
     3 
       
     4 def test_string(prog: String, cname: String) = {
       
     5   val tks = tokenise(prog)
       
     6   //println(tks)
       
     7   val ast = Prog.parse_all(tks).head
       
     8   //println(ast)
       
     9   val code = fun_compile(ast)
       
    10   //println(code)
       
    11   os.write.over(os.pwd / (cname ++ ".ll"), code)
       
    12   //println(eval(ast))
       
    13 }