author | Christian Urban <urbanc@in.tum.de> |
Wed, 14 Jan 2009 16:46:07 +0000 | |
changeset 68 | e7519207c2b7 |
parent 64 | 9a6e5e0c4906 |
child 80 | 95e9c4556221 |
permissions | -rw-r--r-- |
theory Base imports Main uses "chunks.ML" "antiquote_setup.ML" begin (* to have a special tag for text enclosed in ML *) ML {* val _ = OuterSyntax.command "ML" "eval ML text within theory" (OuterKeyword.tag "CookBookML" OuterKeyword.thy_decl) (OuterParse.ML_source >> (fn (txt, pos) => Toplevel.generic_theory (ML_Context.exec (fn () => ML_Context.eval true pos txt)))); *} end