CookBook/Base.thy
author Christian Urban <urbanc@in.tum.de>
Wed, 04 Mar 2009 13:50:47 +0000
changeset 158 d7944bdf7b3f
parent 106 bdd82350cf22
child 160 cc9359bfacf4
permissions -rw-r--r--
removed infix_conv and moved function no_vars into the FirstSteps chapter

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 "TutorialML" OuterKeyword.thy_decl)
    (OuterParse.ML_source >> (fn (txt, pos) =>
      Toplevel.generic_theory (ML_Context.exec (fn () => ML_Context.eval true pos txt))));
*}


end