doc-src/IsarAdvanced/Codegen/Thy/examples/arbitrary.ML
author wenzelm
Fri, 19 Jan 2007 22:10:35 +0100
changeset 22124 27b674312b2f
parent 21994 dfa5133dbe73
child 23850 f1434532a562
permissions -rw-r--r--
renamed Isar/isar_output.ML to Thy/thy_output.ML; tuned messages; Antiquote.scan_arguments (moved from here); moved ML context stuff to from Context to ML_Context;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21190
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     1
structure ROOT = 
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     2
struct
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     3
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     4
structure Codegen = 
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     5
struct
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     6
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     7
val arbitrary_option : 'a option = NONE;
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
     8
21994
dfa5133dbe73 updated manual
haftmann
parents: 21993
diff changeset
     9
fun dummy_option [] = arbitrary_option
dfa5133dbe73 updated manual
haftmann
parents: 21993
diff changeset
    10
  | dummy_option (x :: xs) = SOME x;
21190
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
    11
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
    12
end; (*struct Codegen*)
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
    13
08ec81dfc7fb (continued)
haftmann
parents:
diff changeset
    14
end; (*struct ROOT*)