author | Christian Urban <urbanc@in.tum.de> |
Fri, 21 Aug 2009 16:04:59 +0200 | |
changeset 319 | 6bce4acf7f2a |
child 321 | e450fa467e3f |
permissions | -rw-r--r-- |
319
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
1 |
theory Command |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
2 |
imports Main |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
3 |
begin |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
4 |
ML {* |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
5 |
let |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
6 |
val do_nothing = Scan.succeed (LocalTheory.theory I) |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
7 |
val kind = OuterKeyword.thy_goal |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
8 |
in |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
9 |
OuterSyntax.local_theory "foobar" "description of foobar" kind do_nothing |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
10 |
end |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
11 |
*} |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
12 |
|
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
13 |
ML {* |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
14 |
let |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
15 |
val do_nothing = Scan.succeed (LocalTheory.theory I) |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
16 |
val kind = OuterKeyword.thy_decl |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
17 |
in |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
18 |
OuterSyntax.local_theory "simple_induct" "description of foobar" kind do_nothing |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
19 |
end |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
20 |
*} |
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
21 |
|
6bce4acf7f2a
added file for producing a keyword file
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
22 |
end |