summaryrefslogtreecommitdiff
path: root/src/core_print.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-06-22 09:27:29 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-06-22 09:27:29 -0400
commita78e978c05d7d28f31f4407b6918d89d44a5643c (patch)
tree29f8a7dd372a3fd5fa14b1960e5b3917c6aa1e50 /src/core_print.sml
parent79223408d7b3ce19f0463142461d84a1ad09d785 (diff)
Start of FFI
Diffstat (limited to 'src/core_print.sml')
-rw-r--r--src/core_print.sml9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core_print.sml b/src/core_print.sml
index 3bcb982e..a3fde909 100644
--- a/src/core_print.sml
+++ b/src/core_print.sml
@@ -90,6 +90,7 @@ fun p_con' par env (c, _) =
else
string (#1 (E.lookupCNamed env n)))
handle E.UnboundNamed _ => string ("UNBOUNDN_" ^ Int.toString n))
+ | CFfi (m, x) => box [string "FFI(", string m, string ".", string x, string ")"]
| CApp (c1, c2) => parenIf par (box [p_con env c1,
space,
@@ -156,6 +157,14 @@ fun p_exp' par env (e, _) =
else
string (#1 (E.lookupENamed env n)))
handle E.UnboundNamed _ => string ("UNBOUNDN_" ^ Int.toString 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 "))"]
| EApp (e1, e2) => parenIf par (box [p_exp env e1,
space,
p_exp' true env e2])