src/Pure/ML/ml_context.ML
changeset 24695 2892482a4e62
parent 24685 c3d56f41483b
child 25142 57c717b9dd59
equal deleted inserted replaced
24694:54f06f7feefa 24695:2892482a4e62
   214 
   214 
   215 val _ = value_antiq "cprop" (Args.prop >> (fn t =>
   215 val _ = value_antiq "cprop" (Args.prop >> (fn t =>
   216   ("cprop",
   216   ("cprop",
   217     "Thm.cterm_of (ML_Context.the_context ()) " ^ ML_Syntax.atomic (ML_Syntax.print_term t))));
   217     "Thm.cterm_of (ML_Context.the_context ()) " ^ ML_Syntax.atomic (ML_Syntax.print_term t))));
   218 
   218 
       
   219 val _ = inline_antiq "type_name"
       
   220   ((Scan.state >> Context.proof_of) -- Scan.lift Args.name >> (fn (ctxt, c) =>
       
   221     #1 (Term.dest_Type (ProofContext.read_tyname ctxt c))
       
   222     |> ML_Syntax.print_string));
   219 
   223 
   220 fun const syn = (Scan.state >> Context.proof_of) -- Scan.lift Args.name >> (fn (ctxt, c) =>
   224 fun const syn = (Scan.state >> Context.proof_of) -- Scan.lift Args.name >> (fn (ctxt, c) =>
   221   #1 (Term.dest_Const (Consts.read_const (ProofContext.consts_of ctxt) c))
   225   #1 (Term.dest_Const (Consts.read_const (ProofContext.consts_of ctxt) c))
   222   |> syn ? ProofContext.const_syntax_name ctxt
   226   |> syn ? ProofContext.const_syntax_name ctxt
   223   |> ML_Syntax.print_string);
   227   |> ML_Syntax.print_string);