From 652ca797f5c9de9adc198df0c0e8a706807328a6 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 31 Aug 2008 09:00:28 -0400 Subject: Corify tables --- src/core_print.sml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'src/core_print.sml') diff --git a/src/core_print.sml b/src/core_print.sml index b03b25f6..a5d3df95 100644 --- a/src/core_print.sml +++ b/src/core_print.sml @@ -331,14 +331,17 @@ fun p_exp' par env (e, _) = and p_exp env = p_exp' false env +fun p_named x n = + if !debug then + box [string x, + string "__", + string (Int.toString n)] + else + string x + fun p_vali env (x, n, t, e, s) = let - val xp = if !debug then - box [string x, - string "__", - string (Int.toString n)] - else - string x + val xp = p_named x n in box [xp, space, @@ -432,6 +435,17 @@ fun p_decl env (dAll as (d, _) : decl) = string "as", space, p_con env (#2 (E.lookupENamed env n))] + | DTable (x, n, c, s) => box [string "table", + space, + p_named x n, + space, + string "as", + space, + string s, + space, + string ":", + space, + p_con env c] fun p_file env file = let -- cgit v1.2.3