doc-src/Codegen/Thy/examples/arbitrary.ML
author bulwahn
Wed, 20 Jan 2010 18:02:22 +0100
changeset 34952 bd7e347eb768
parent 30226 2f4684e2ea95
permissions -rw-r--r--
added registration of equational theorems from prim_rec and rec_def to Spec_Rules

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

fun dummy_option [] = arbitrary_option
  | dummy_option (x :: xs) = SOME x;

end; (*struct Codegen*)