| changeset 977 | 7a02c5b9e0df |
| 976:4be299d9b41b | 977:7a02c5b9e0df |
|---|---|
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 } |