package lustre-v6
The Lustre V6 Verimag compiler
Install
Dune Dependency
Authors
Maintainers
Sources
lustre-v6.v6.107.1.tgz
md5=4b642b106a76e19de3751afb53ccdcf4
sha512=ec6d35f0f4da219490cad7969d86e9128b7c3f03baa507f662b038b1915383581eda697ddb0e734a1a5311ef6b0908b1d0cf375a0be5dbb1aa7e9e79848037cc
doc/src/lustre-v6/action.ml.html
Source file action.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
(** Time-stamp: <modified the 29/08/2019 (at 14:55) by Erwan Jahier> *) (* exported *) type rhs = Soc.var_expr list type lhs = Soc.var_expr list type t = Lic.clock * rhs * lhs * Soc.atomic_operation * Lxm.t (* exported *) let to_string_msg: (t -> string) = fun (c, i, o, p, _) -> (* Version surchargée de Soc.string_of_operation pour afficher les "=" *) let string_of_operation = function | Soc.Assign -> "" | op -> SocUtils.string_of_operation op in let string_of_params p = String.concat ", " (List.map SocUtils.string_of_filter p) in if o = [] then Format.sprintf "%s(%s)" (string_of_operation p) (string_of_params i) else Format.sprintf "%s = %s(%s) %s" (string_of_params o) (string_of_operation p) (string_of_params i) (Lic.string_of_clock c) let to_string: (t -> string) = fun (_c, i, o, p,_) -> (* Version surchargée de SocUtils.string_of_operation : l'objectif est d'afficher, en cas de cycle combinatoire, un message d'erreur qui parle le plus possible à l'utilisateur qui a programmé en V6... Pour cela le mieux (je pense) est simplement de rendre la variable sur laquelle porte le cycle *) let string_of_operation = function | Soc.Assign -> "" | Soc.Method((n, _sk),_sname) -> n | Soc.Procedure(name,_,_) -> name in let string_of_params p = String.concat ", " (List.map SocUtils.string_of_filter p) in if o = [] then Format.sprintf "%s(%s)" (string_of_operation p) (string_of_params i) else Format.sprintf "%s = %s(%s)" (string_of_params o) (string_of_operation p) (string_of_params i)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>