diff src/expl_print.sml @ 182:d11754ffe252

Compiled pattern matching to C
author Adam Chlipala <adamc@hcoop.net>
date Sun, 03 Aug 2008 12:43:20 -0400
parents 33d4a8eea484
children 8e9f97508f0d
line wrap: on
line diff
--- a/src/expl_print.sml	Sun Aug 03 11:17:33 2008 -0400
+++ b/src/expl_print.sml	Sun Aug 03 12:43:20 2008 -0400
@@ -179,7 +179,7 @@
 fun p_pat' par env (p, _) =
     case p of
         PWild => string "_"
-      | PVar s => string s
+      | PVar (s, _) => string s
       | PPrim p => Prim.p_t p
       | PCon (pc, NONE) => p_patCon env pc
       | PCon (pc, SOME p) => parenIf par (box [p_patCon env pc,
@@ -187,7 +187,7 @@
                                                p_pat' true env p])
       | PRecord xps =>
         box [string "{",
-             p_list_sep (box [string ",", space]) (fn (x, p) =>
+             p_list_sep (box [string ",", space]) (fn (x, p, _) =>
                                                       box [string x,
                                                            space,
                                                            string "=",