src/HOL/Codegenerator_Test/Generate_Pretty.thy
author Christian Sternagel
Thu Aug 30 15:44:03 2012 +0900 (2012-08-30)
changeset 49093 fdc301f592c4
parent 47108 2a1953f0d20d
child 50629 264ece81df93
permissions -rw-r--r--
forgot to add lemmas
     1 
     2 (* Author: Florian Haftmann, TU Muenchen *)
     3 
     4 header {* Pervasive test of code generator using pretty literals *}
     5 
     6 theory Generate_Pretty
     7 imports Candidates_Pretty
     8 begin
     9 
    10 lemma [code, code del]: "nat_of_char = nat_of_char" ..
    11 lemma [code, code del]: "char_of_nat = char_of_nat" ..
    12 
    13 declare Quickcheck_Narrowing.one_code_int_code [code del]
    14 declare Quickcheck_Narrowing.int_of_code [code del]
    15 
    16 subsection {* Check whether generated code compiles *}
    17 
    18 text {*
    19   If any of the checks fails, inspect the code generated
    20   by a corresponding @{text export_code} command.
    21 *}
    22 
    23 export_code _ checking SML OCaml? Haskell? Scala?
    24 
    25 end