Mercurial > urweb
diff src/core_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 | 5d030ee143e2 |
children | 19ee24bffbc0 |
line wrap: on
line diff
--- a/src/core_print.sml Sun Aug 03 11:17:33 2008 -0400 +++ b/src/core_print.sml Sun Aug 03 12:43:20 2008 -0400 @@ -171,7 +171,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 (n, NONE) => p_patCon env n | PCon (n, SOME p) => parenIf par (box [p_patCon env n, @@ -179,7 +179,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 "=",