doc-src/Codegen/Thy/examples/arbitrary.ML
author wenzelm
Sun, 12 Jun 2011 20:08:49 +0200
changeset 43369 4c86b3405010
parent 30226 2f4684e2ea95
permissions -rw-r--r--
separate isabelle.jedit.Text_Painter, which actually replaces the original TextAreaPainter$PaintText instance;

structure Codegen = 
struct

val arbitrary_option : 'a option = NONE;

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

end; (*struct Codegen*)