ProgTutorial/Base.thy
author griff
Mon, 23 Mar 2009 14:20:14 +0100
changeset 202 16ec70218d26
parent 189 069d525f8f1d
child 210 db8e302f44c8
permissions -rw-r--r--
tiny changes

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))));
*}
(*
ML {*
  fun warning str = str
  fun tracing str = str
*}
*)
end