src/Pure/ML/ml_thms.ML
changeset 27809 a1e409db516b
parent 27521 44081396d735
child 27869 af1f79cbc198
--- a/src/Pure/ML/ml_thms.ML	Sat Aug 09 12:28:13 2008 +0200
+++ b/src/Pure/ML/ml_thms.ML	Sat Aug 09 22:43:46 2008 +0200
@@ -49,12 +49,12 @@
 
 (* ad-hoc goals *)
 
-fun by x = Scan.lift (Args.$$$ "by") x;
-val goal = Scan.unless by Args.prop;
+val by = Args.$$$ "by";
+val goal = Scan.unless (Scan.lift by) Args.prop;
 
 val _ = ML_Context.add_antiq "lemma"
-  ((Args.context -- Args.mode "open" -- Scan.repeat1 goal --
-      (by |-- Scan.lift Method.parse_args -- Scan.option (Scan.lift Method.parse_args))) >>
+  (Args.context -- Args.mode "open" -- Scan.repeat1 goal --
+      Scan.lift (by |-- Method.parse -- Scan.option Method.parse) >>
     (fn (((ctxt, is_open), props), methods) => fn {struct_name, background} =>
       let
         val i = serial ();