-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sml
35 lines (33 loc) · 1.03 KB
/
test.sml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
structure Main =
struct
structure P = Parse
structure Sem = Semant
fun main filename =
let
val abExp = Parse.parse filename
in
Sem.transProg abExp
end
fun try () =
let
val fnames = ["../testcases/test1.tig",
"../testcases/test2.tig",
"../testcases/test3.tig",
"../testcases/test4.tig",
"../testcases/test5.tig",
"../testcases/test6.tig",
"../testcases/test7.tig",
"../testcases/test8.tig",
"../testcases/test9.tig",
"../testcases/test10.tig",
"../testcases/test11.tig",
"../testcases/test12.tig",
"../testcases/test13.tig",
"../testcases/test14.tig",
"../testcases/test15.tig",
"../testcases/test16.tig"]
val abExps = List.map Parse.parse fnames
in
List.map Sem.transProg abExps
end
end