package lutin
Lutin: modeling stochastic reactive systems
Install
dune-project
Dependency
Authors
Maintainers
Sources
lutin.2.71.10.tgz
md5=4d07d1263dbc90ab18cbaec55a57dcfe
sha512=2e899aee5e44826827b3626771f7ce01241b1745d48f30b60404cc5cbaa44ac608920e9af3bf171275c429a8b823b3cee7542199b7c4c32919b6bb37e33bf8de
doc/src/lutin/genOcamlGlue.ml.html
Source file genOcamlGlue.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
(* Time-stamp: <modified the 26/03/2014 (at 17:07) by Erwan Jahier> *) (* generate ocaml glue code that makes it possible to call lutin from ocaml with the current set of arguments. *) let (f: string array -> MainArg.t -> unit) = fun argv opt -> let outfile = match (MainArg.outfile opt) with | None -> ( let file = List.hd (MainArg.infile opt) in try (Filename.chop_extension (Filename.basename file))^ ".ml" with _ -> print_string ("*** '"^file^"': bad file name.\n"); exit 2 ) | Some f -> f in let cma_file = (Filename.chop_extension outfile) ^".cma" in let remove_me = ["-ocaml"; "-o"; outfile] in let args = Array.fold_right (fun x acc -> if List.mem x remove_me then acc else x::acc) argv [] in let args_str = "\"" ^ (String.concat "\";\"" args) ^"\"" in let oc = open_out (outfile) in let entete = Util.entete "(*" "*)" in Printf.fprintf oc "%s let plugin = let args = Array.of_list [%s] in LutinRun.make args (* The following is to make it possible for rdbg to call this lutin program. But of course, one can use it to dynamically call those steps functions from any ocaml programs (as rdbg does). *) let dyn_file = (Dynlink.adapt_filename \"%s\") let _ = OcamlRM.reg_plugin dyn_file plugin " entete args_str cma_file
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>