src/Doc/Codegen/Setup.thy
author wenzelm
Thu, 23 Jul 2015 13:28:34 +0200
changeset 60768 f47bd91fdc75
parent 59378 065f349852e6
child 61143 5f898411ce87
permissions -rw-r--r--
proper latex;

theory Setup
imports
  Complex_Main
  "~~/src/Tools/Permanent_Interpretation"
  "~~/src/HOL/Library/Dlist"
  "~~/src/HOL/Library/RBT"
  "~~/src/HOL/Library/Mapping"
  "~~/src/HOL/Library/IArray"
begin

ML_file "../antiquote_setup.ML"
ML_file "../more_antiquote.ML"

setup \<open>
let
  val typ = Simple_Syntax.read_typ;
in
  Sign.del_syntax (Symbol.xsymbolsN, false)
   [("_constrain", typ "logic => type => logic", Mixfix ("_\<Colon>_", [4, 0], 3)),
    ("_constrain", typ "prop' => type => prop'", Mixfix ("_\<Colon>_", [4, 0], 3))] #>
  Sign.add_syntax (Symbol.xsymbolsN, false)
   [("_constrain", typ "logic => type => logic", Mixfix ("_ \<Colon>  _", [4, 0], 3)),
    ("_constrain", typ "prop' => type => prop'", Mixfix ("_ \<Colon> _", [4, 0], 3))]
end
\<close>

declare [[default_code_width = 74]]

declare [[names_unique = false]]

end