equal
deleted
inserted
replaced
48 ML_Antiquotation.value @{binding cpat} |
48 ML_Antiquotation.value @{binding cpat} |
49 (Args.context -- |
49 (Args.context -- |
50 Scan.lift Args.name_inner_syntax >> uncurry Proof_Context.read_term_pattern >> (fn t => |
50 Scan.lift Args.name_inner_syntax >> uncurry Proof_Context.read_term_pattern >> (fn t => |
51 "Thm.cterm_of (Proof_Context.theory_of ML_context) " ^ |
51 "Thm.cterm_of (Proof_Context.theory_of ML_context) " ^ |
52 ML_Syntax.atomic (ML_Syntax.print_term t)))); |
52 ML_Syntax.atomic (ML_Syntax.print_term t)))); |
|
53 |
|
54 |
|
55 (* embedded source *) |
|
56 |
|
57 val _ = Theory.setup |
|
58 (ML_Antiquotation.value @{binding source} |
|
59 (Scan.lift Args.text_source_position >> (fn {delimited, text, pos} => |
|
60 "{delimited = " ^ Bool.toString delimited ^ |
|
61 ", text = " ^ ML_Syntax.print_string text ^ |
|
62 ", pos = " ^ ML_Syntax.print_position pos ^ "}"))); |
53 |
63 |
54 |
64 |
55 (* ML support *) |
65 (* ML support *) |
56 |
66 |
57 val _ = Theory.setup |
67 val _ = Theory.setup |