src/Pure/Isar/isar_syn.ML
changeset 21269 c605503bb4ef
parent 21228 54faccb5d6f6
child 21306 7ab6e95e6b0b
equal deleted inserted replaced
21268:7a6299a17386 21269:c605503bb4ef
   219 val abbreviationP =
   219 val abbreviationP =
   220   OuterSyntax.command "abbreviation" "constant abbreviation" K.thy_decl
   220   OuterSyntax.command "abbreviation" "constant abbreviation" K.thy_decl
   221     (P.opt_locale_target -- opt_mode --
   221     (P.opt_locale_target -- opt_mode --
   222       Scan.repeat1 (Scan.option constdecl -- P.prop)
   222       Scan.repeat1 (Scan.option constdecl -- P.prop)
   223     >> (fn ((loc, mode), args) =>
   223     >> (fn ((loc, mode), args) =>
   224         Toplevel.local_theory loc (Specification.abbreviation mode args)));
   224         Toplevel.local_theory loc (snd o Specification.abbreviation mode args)));
   225 
   225 
   226 val notationP =
   226 val notationP =
   227   OuterSyntax.command "notation" "variable/constant syntax" K.thy_decl
   227   OuterSyntax.command "notation" "variable/constant syntax" K.thy_decl
   228     (P.opt_locale_target -- opt_mode -- Scan.repeat1 (P.xname -- P.mixfix)
   228     (P.opt_locale_target -- opt_mode -- Scan.repeat1 (P.xname -- P.mixfix)
   229     >> (fn ((loc, mode), args) =>
   229     >> (fn ((loc, mode), args) =>