src/Pure/ML/ml_context.ML
changeset 25346 7f2e3292e3dd
parent 25334 db0365e89f5a
child 25700 185ea28035ac
equal deleted inserted replaced
25345:dd5b851f8ef0 25346:7f2e3292e3dd
   239 
   239 
   240 val _ = inline_antiq "type_name" (type_ false);
   240 val _ = inline_antiq "type_name" (type_ false);
   241 val _ = inline_antiq "type_syntax" (type_ true);
   241 val _ = inline_antiq "type_syntax" (type_ true);
   242 
   242 
   243 fun const syn = (Scan.state >> Context.proof_of) -- Scan.lift Args.name >> (fn (ctxt, c) =>
   243 fun const syn = (Scan.state >> Context.proof_of) -- Scan.lift Args.name >> (fn (ctxt, c) =>
   244   #1 (Term.dest_Const (ProofContext.read_const' ctxt c))
   244   #1 (Term.dest_Const (ProofContext.read_const_proper ctxt c))
   245   |> syn ? ProofContext.const_syntax_name ctxt
   245   |> syn ? ProofContext.const_syntax_name ctxt
   246   |> ML_Syntax.print_string);
   246   |> ML_Syntax.print_string);
   247 
   247 
   248 val _ = inline_antiq "const_name" (const false);
   248 val _ = inline_antiq "const_name" (const false);
   249 val _ = inline_antiq "const_syntax" (const true);
   249 val _ = inline_antiq "const_syntax" (const true);