src/HOL/Tools/string_code.ML
changeset 48072 ace701efe203
parent 38923 79d7f2b4cf71
child 51160 599ff65b85e2
--- a/src/HOL/Tools/string_code.ML	Mon Jun 04 12:55:54 2012 +0200
+++ b/src/HOL/Tools/string_code.ML	Tue Jun 05 07:05:56 2012 +0200
@@ -23,13 +23,13 @@
       | decode _ ~1 = NONE
       | decode n m = SOME (chr (n * 16 + m));
   in case tt
-   of (IConst (c1, _), IConst (c2, _)) => decode (idx c1) (idx c2)
+   of (IConst { name = c1, ... }, IConst { name = c2, ... }) => decode (idx c1) (idx c2)
     | _ => NONE
   end;
    
 fun implode_string char' nibbles' mk_char mk_string ts =
   let
-    fun implode_char (IConst (c, _) `$ t1 `$ t2) =
+    fun implode_char (IConst { name = c, ... } `$ t1 `$ t2) =
           if c = char' then decode_char nibbles' (t1, t2) else NONE
       | implode_char _ = NONE;
     val ts' = map_filter implode_char ts;