src/Pure/Isar/method.ML
changeset 54883 dd04a8b654fc
parent 54742 7a86358a3c0b
child 55048 ce34a2934386
equal deleted inserted replaced
54882:61276a7fc369 54883:dd04a8b654fc
    52     Then of text list |
    52     Then of text list |
    53     Orelse of text list |
    53     Orelse of text list |
    54     Try of text |
    54     Try of text |
    55     Repeat1 of text |
    55     Repeat1 of text |
    56     Select_Goals of int * text
    56     Select_Goals of int * text
    57   val primitive_text: (thm -> thm) -> text
    57   val primitive_text: (Proof.context -> thm -> thm) -> text
    58   val succeed_text: text
    58   val succeed_text: text
    59   val default_text: text
    59   val default_text: text
    60   val this_text: text
    60   val this_text: text
    61   val done_text: text
    61   val done_text: text
    62   val sorry_text: bool -> text
    62   val sorry_text: bool -> text
   291   Orelse of text list |
   291   Orelse of text list |
   292   Try of text |
   292   Try of text |
   293   Repeat1 of text |
   293   Repeat1 of text |
   294   Select_Goals of int * text;
   294   Select_Goals of int * text;
   295 
   295 
   296 fun primitive_text r = Basic (K (SIMPLE_METHOD (PRIMITIVE r)));
   296 fun primitive_text r = Basic (SIMPLE_METHOD o PRIMITIVE o r);
   297 val succeed_text = Basic (K succeed);
   297 val succeed_text = Basic (K succeed);
   298 val default_text = Source (Args.src (("default", []), Position.none));
   298 val default_text = Source (Args.src (("default", []), Position.none));
   299 val this_text = Basic (K this);
   299 val this_text = Basic (K this);
   300 val done_text = Basic (K (SIMPLE_METHOD all_tac));
   300 val done_text = Basic (K (SIMPLE_METHOD all_tac));
   301 fun sorry_text int = Basic (fn ctxt => cheating ctxt int);
   301 fun sorry_text int = Basic (fn ctxt => cheating ctxt int);