package ortac-core
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Ortac (OCaml Runtime Assertion Checking) core tool and library based on Gospel
Install
dune-project
Dependency
Authors
Maintainers
Sources
.tar.gz
md5=1bbffc8b2ecf943c2d66bdf9c72b994a
sha512=f23537bc18149e5cf5f5035139fac0541b55f7087127b1ca963f16d8852096d7fbdd5378b9fbb7703a3ce175b4a90ad8a7dfafc4292b5f1196fa11fbef43a178
doc/src/ortac-core.register/registration.ml.html
Source file registration.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50type plugins = unit Cmdliner.Cmd.t Queue.t let plugins = Queue.create () let register cmd = Queue.add cmd plugins let fold = Queue.fold let get_channel = function None -> stdout | Some path -> open_out path let get_out_formatter s = get_channel s |> Format.formatter_of_out_channel open Cmdliner let setup_log = let init style_renderer = Fmt_tty.setup_std_outputs ?style_renderer () in Term.(const init $ Fmt_cli.style_renderer ()) let include_ = Arg.( value & opt (some string) None & info [ "i"; "include" ] ~docv:"MODULE" ~doc:"Include MODULE in the generated code.") let output_file = let parse s = match Sys.is_directory s with | true -> Error (`Msg (Fmt.str "Error: `%s' is a directory" s)) | false | (exception Sys_error _) -> Ok (Some s) in Arg.( value & opt (conv ~docv:"OUTPUT" (parse, Fmt.(option string))) None & info [ "o"; "output" ] ~absent:"stdout" ~docv:"OUTPUT" ~doc: "Print the generated code in OUTPUT. Overwrite the file if it exists.") let quiet = Arg.(value & flag & info [ "q"; "quiet" ] ~doc:"Don't print any warnings.") let ocaml_file = let parser s = match Sys.file_exists s with | true -> if Sys.is_directory s || Filename.extension s <> ".mli" then Error (Fmt.str "Error: `%s' is not an OCaml interface file" s) else Ok s | false -> Error (Fmt.str "Error: `%s' not found" s) in Arg.( required & pos 0 (some (Conv.make ~docv:"FILE" ~parser ~pp:Fmt.string ())) None & info [] ~docv:"FILE" ~doc:"Read Gospel specifications in FILE.")
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>