src/Pure/Tools/plugin.ML
changeset 67146 909dcdec2122
parent 59880 30687c3f2b10
child 67147 dea94b1aabc3
equal deleted inserted replaced
67145:e77c5bfca9aa 67146:909dcdec2122
    39 fun check ctxt =
    39 fun check ctxt =
    40   #1 o Name_Space.check (Context.Proof ctxt) (Data.get (Proof_Context.theory_of ctxt));
    40   #1 o Name_Space.check (Context.Proof ctxt) (Data.get (Proof_Context.theory_of ctxt));
    41 
    41 
    42 val _ = Theory.setup
    42 val _ = Theory.setup
    43   (ML_Antiquotation.inline @{binding plugin}
    43   (ML_Antiquotation.inline @{binding plugin}
    44     (Args.context -- Scan.lift (Parse.position Args.name)
    44     (Args.context -- Scan.lift (Parse.position Args.embedded)
    45       >> (ML_Syntax.print_string o uncurry check)));
    45       >> (ML_Syntax.print_string o uncurry check)));
    46 
    46 
    47 
    47 
    48 (* indirections *)
    48 (* indirections *)
    49 
    49