24195
|
1 |
(* Title: HOL/ex/Codegenerator_Pretty.thy
|
|
2 |
Author: Florian Haftmann, TU Muenchen
|
|
3 |
*)
|
|
4 |
|
|
5 |
header {* Simple examples for pretty numerals and such *}
|
|
6 |
|
|
7 |
theory Codegenerator_Pretty
|
25963
|
8 |
imports ExecutableContent Code_Char Efficient_Nat
|
24195
|
9 |
begin
|
|
10 |
|
28562
|
11 |
declare isnorm.simps [code del]
|
28228
|
12 |
|
25963
|
13 |
ML {* (*FIXME get rid of this*)
|
|
14 |
nonfix union;
|
|
15 |
nonfix inter;
|
|
16 |
nonfix upto;
|
|
17 |
*}
|
25933
|
18 |
|
25963
|
19 |
export_code * in SML module_name CodegenTest
|
|
20 |
in OCaml module_name CodegenTest file -
|
|
21 |
in Haskell file -
|
25616
|
22 |
|
25963
|
23 |
ML {*
|
|
24 |
infix union;
|
|
25 |
infix inter;
|
|
26 |
infix 4 upto;
|
|
27 |
*}
|
24195
|
28 |
|
|
29 |
end
|