equal
deleted
inserted
replaced
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); |