Theory M_04_Document_Ontology
theory
"M_04_Document_Ontology"
imports
"M_03_GuidedTour"
keywords "class_synonym" :: thy_defn
begin
definition combinator1 :: "'a ⇒ ('a ⇒ 'b) ⇒ 'b" (infixl "|>" 65)
where "x |> f = f x"
ML‹
local
val _ =
Outer_Syntax.local_theory \<^command_keyword>‹class_synonym› "declare type abbreviation"
(Parse.type_args -- Parse.binding --
(\<^keyword>‹=› |-- Parse.!!! (Parse.typ -- Parse.opt_mixfix'))
>> (fn ((args, a), (rhs, mx)) => snd o Typedecl.abbrev_cmd (a, args, mx) rhs));
in end
›
doc_class "title" = short_title :: "string option" <= "None"
doc_class elsevier =
organization :: string
address_line :: string
postcode :: int
city :: string