(************************************************************************) (* This file is licensed under The MIT License *) (* See LICENSE for more information *) (************************************************************************)
module F = Format
type'a pp = Format.formatter -> 'a -> unit
module Rule = struct type t =
{ targets : stringlist
; deps : stringlist
; action : string
; alias : stringoption
}
let pp_sep fmt () = F.fprintf fmt "@;" let ppl = F.pp_print_list ~pp_sep F.pp_print_string let pp_alias fmt = function
| None -> ()
| Some alias -> F.fprintf fmt "(alias %s)@\n" alias
let pp fmt { alias; targets; deps; action } =
F.fprintf fmt "@[(rule@\n @[%a(targets @[%a@])@\n(deps @[%a@])@\n(action @[%a@])@])@]@\n"
pp_alias alias ppl targets ppl deps F.pp_print_string action end
module Install = struct type t =
{ section : string
; package : string
; files : (string * string) list (* (source as target) *)
}
let pp_install_file fmt (source, target) =
F.fprintf fmt "(%s as %s)" source target
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.