src/Pure/Tools/named_theorems.ML
changeset 59878 05362c246a64
parent 59028 df7476e79558
child 59879 6292f1f5ffae
equal deleted inserted replaced
59877:a04ea4709c8d 59878:05362c246a64
    84   (ML_Antiquotation.inline @{binding named_theorems}
    84   (ML_Antiquotation.inline @{binding named_theorems}
    85     (Args.context -- Scan.lift (Parse.position Args.name) >> (fn (ctxt, (xname, pos)) =>
    85     (Args.context -- Scan.lift (Parse.position Args.name) >> (fn (ctxt, (xname, pos)) =>
    86       let
    86       let
    87         val thy = Proof_Context.theory_of ctxt;
    87         val thy = Proof_Context.theory_of ctxt;
    88         val name = Global_Theory.check_fact thy (xname, pos);
    88         val name = Global_Theory.check_fact thy (xname, pos);
    89         val _ = get ctxt name handle ERROR msg => cat_error msg (Position.here pos);
    89         val _ = get ctxt name handle ERROR msg => error (msg ^ Position.here pos);
    90       in ML_Syntax.print_string name end)));
    90       in ML_Syntax.print_string name end)));
    91 
    91 
    92 end;
    92 end;