src/Pure/Thy/thy_output.ML
changeset 56069 451d5b73f8cf
parent 56052 4873054cd1fc
child 56201 dd2df97b379b
equal deleted inserted replaced
56068:f74d0a4d8ae3 56069:451d5b73f8cf
   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