src/Pure/Isar/isar_syn.ML
changeset 12952 2d6156232994
parent 12940 26c0566adf62
child 12956 fe285acd2e34
equal deleted inserted replaced
12951:a9fdcb71d252 12952:2d6156232994
   294 
   294 
   295 (* statements *)
   295 (* statements *)
   296 
   296 
   297 val statement = P.and_list1 (P.opt_thm_name ":" -- Scan.repeat1 P.propp);
   297 val statement = P.and_list1 (P.opt_thm_name ":" -- Scan.repeat1 P.propp);
   298 val long_statement =
   298 val long_statement =
   299   Scan.repeat P.locale_element -- (P.$$$ "shows" |-- statement) || statement >> pair [];
   299   statement >> pair [] || Scan.repeat P.locale_element -- (P.$$$ "shows" |-- statement);
   300 
   300 
   301 fun gen_theorem k =
   301 fun gen_theorem k =
   302   OuterSyntax.command k ("state " ^ k) K.thy_goal
   302   OuterSyntax.command k ("state " ^ k) K.thy_goal
   303     (Scan.optional (P.thm_name ":" --|
   303     (Scan.optional (P.thm_name ":" --|
   304       Scan.ahead (P.$$$ "(" || P.locale_keyword || P.$$$ "shows")) ("", [])
   304       Scan.ahead (P.$$$ "(" || P.locale_keyword || P.$$$ "shows")) ("", [])