src/Pure/Isar/isar_syn.ML
changeset 21403 dd58f13a8eb4
parent 21350 6e58289b6685
child 21437 a3c55b85cf0e
equal deleted inserted replaced
21402:c15bcd87f47c 21403:dd58f13a8eb4
   216     >> (fn ((loc, mode), args) =>
   216     >> (fn ((loc, mode), args) =>
   217         Toplevel.local_theory loc (snd o Specification.abbreviation mode args)));
   217         Toplevel.local_theory loc (snd o Specification.abbreviation mode args)));
   218 
   218 
   219 val notationP =
   219 val notationP =
   220   OuterSyntax.command "notation" "variable/constant syntax" K.thy_decl
   220   OuterSyntax.command "notation" "variable/constant syntax" K.thy_decl
   221     (P.opt_locale_target -- opt_mode -- Scan.repeat1 (P.xname -- P.mixfix)
   221     (P.opt_locale_target -- opt_mode -- P.and_list1 (P.xname -- P.mixfix)
   222     >> (fn ((loc, mode), args) =>
   222     >> (fn ((loc, mode), args) =>
   223         Toplevel.local_theory loc (Specification.notation mode args)));
   223         Toplevel.local_theory loc (Specification.notation mode args)));
   224 
   224 
   225 
   225 
   226 (* constant specifications *)
   226 (* constant specifications *)