diff options
author | Adam Chlipala <adamc@hcoop.net> | 2008-07-13 11:43:57 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2008-07-13 11:43:57 -0400 |
commit | 95d278b9b8e9c314541b8251a34a32fe6deeb896 (patch) | |
tree | f0f262173a66272d9d91248844f2facc40cc65a2 /src/compiler.sml | |
parent | 3316f3c317e587a5fc2ecf38f061a72b48e3b94e (diff) |
Starting with closure links
Diffstat (limited to 'src/compiler.sml')
-rw-r--r-- | src/compiler.sml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/compiler.sml b/src/compiler.sml index 1f063633..e54fe5b4 100644 --- a/src/compiler.sml +++ b/src/compiler.sml @@ -196,8 +196,17 @@ fun shake' job = else SOME (Shake.shake file) +fun tag job = + case shake' job of + NONE => NONE + | SOME file => + if ErrorMsg.anyErrors () then + NONE + else + SOME (Tag.tag file) + fun reduce job = - case corify job of + case tag job of NONE => NONE | SOME file => if ErrorMsg.anyErrors () then @@ -285,6 +294,15 @@ fun testShake' job = handle CoreEnv.UnboundNamed n => print ("Unbound named " ^ Int.toString n ^ "\n") +fun testTag job = + (case tag job of + NONE => print "Failed\n" + | SOME file => + (Print.print (CorePrint.p_file CoreEnv.empty file); + print "\n")) + handle CoreEnv.UnboundNamed n => + print ("Unbound named " ^ Int.toString n ^ "\n") + fun testReduce job = (case reduce job of NONE => print "Failed\n" |