diff src/flat_print.sml @ 52:198172560b73

FFI through cloconv
author Adam Chlipala <adamc@hcoop.net>
date Sun, 22 Jun 2008 10:17:34 -0400
parents 1c91c5e6840f
children 717b6f8d8505
line wrap: on
line diff
--- a/src/flat_print.sml	Sun Jun 22 10:12:23 2008 -0400
+++ b/src/flat_print.sml	Sun Jun 22 10:17:34 2008 -0400
@@ -66,6 +66,7 @@
             string (#1 (E.lookupTNamed env n) ^ "__" ^ Int.toString n)
         else
             string (#1 (E.lookupTNamed env n))
+      | TFfi (m, x) => box [string "FFI(", string m, string ".", string x, string ")"]
 
 and p_typ env = p_typ' false env
 
@@ -83,6 +84,14 @@
             string (#1 (E.lookupENamed env n) ^ "__" ^ Int.toString n)
         else
             string (#1 (E.lookupENamed env n))
+      | EFfi (m, x) => box [string "FFI(", string m, string ".", string x, string ")"]
+      | EFfiApp (m, x, es) => box [string "FFI(",
+                                   string m,
+                                   string ".",
+                                   string x,
+                                   string "(",
+                                   p_list (p_exp env) es,
+                                   string "))"]
       | ECode n => string ("code$" ^ Int.toString n)
       | EApp (e1, e2) => parenIf par (box [p_exp env e1,
                                            space,