src/HOL/ex/Classpackage.thy
changeset 20453 855f07fabd76
parent 20427 0b102b4182de
child 20597 65fe827aa595
equal deleted inserted replaced
20452:6d8b29c7a960 20453:855f07fabd76
   317 definition
   317 definition
   318   "x1 = X (1::nat) 2 3"
   318   "x1 = X (1::nat) 2 3"
   319   "x2 = X (1::int) 2 3"
   319   "x2 = X (1::int) 2 3"
   320   "y2 = Y (1::int) 2 3"
   320   "y2 = Y (1::int) 2 3"
   321 
   321 
   322 code_generate "op \<otimes>" \<one> inv
   322 code_gen "op \<otimes>" \<one> inv
   323 code_generate (ml, haskell) X Y
   323 code_gen X Y (SML) (Haskell)
   324 code_generate (ml, haskell) x1 x2 y2
   324 code_gen x1 x2 y2 (SML) (Haskell)
   325 
   325 
   326 code_serialize ml (-)
   326 code_gen (SML -)
   327 
   327 
   328 end
   328 end