equal
deleted
inserted
replaced
110 [Pretty.big_list "document antiquotations:" (map Pretty.mark_str command_names), |
110 [Pretty.big_list "document antiquotations:" (map Pretty.mark_str command_names), |
111 Pretty.big_list "document antiquotation options:" (map Pretty.mark_str option_names)] |
111 Pretty.big_list "document antiquotation options:" (map Pretty.mark_str option_names)] |
112 |> Pretty.chunks |> Pretty.writeln |
112 |> Pretty.chunks |> Pretty.writeln |
113 end; |
113 end; |
114 |
114 |
115 fun antiquotation name scan out = |
115 fun antiquotation name scan body = |
116 add_command name |
116 add_command name |
117 (fn src => fn state => fn ctxt => |
117 (fn src => fn state => fn ctxt => |
118 let val (x, ctxt') = Args.syntax scan src ctxt |
118 let val (x, ctxt') = Args.syntax scan src ctxt |
119 in out {source = src, state = state, context = ctxt'} x end); |
119 in body {source = src, state = state, context = ctxt'} x end); |
120 |
120 |
121 |
121 |
122 |
122 |
123 (** syntax of antiquotations **) |
123 (** syntax of antiquotations **) |
124 |
124 |