package zelus
A synchronous language with ODEs
Install
Dune Dependency
Authors
Maintainers
Sources
2.2.tar.gz
md5=437ae922f1fda392efca3e37e8b8bb4c
sha512=d591cdbeedb8f3a7f568d6d4994de572093822cb354b112886326219174311715a71a35de57a4c2070eae349f65f0c8f3d6c2f6a5a79a8187bbffc687cd108a6
doc/zelus.zlcompilerlibs/Translate/index.html
Module Translate
val kind : Zelus.kind -> Obc.kind
Translation of the kind
val type_expression : Zelus.type_expression -> Obc.type_expression
Translating type expressions.
val type_of_type_decl : Zelus.type_decl_desc Zelus.localized -> Obc.type_decl
val constr_decl : Zelus.constr_decl -> Obc.constr_decl
val is_mutable : Deftypes.typ -> bool
val type_expression_of_typ : Deftypes.typ -> Obc.type_expression
type env = entry Zident.Env.t
and loop_path = Zident.t list
type code = {
mem : Obc.mentry Zmisc.State.t;
init : Obc.inst;
instances : Obc.ientry Zmisc.State.t;
reset : Obc.inst;
step : Obc.inst;
}
val fprint : Format.formatter -> entry Zident.Env.t -> unit
val empty_code : code
val entry_of : Zident.Env.key -> 'a Zident.Env.t -> 'a
Look for an entry in the environment
val immediate : Deftypes.immediate -> Obc.immediate
Translation of immediate values
val constant : Deftypes.constant -> Obc.exp
val state : bool -> Zident.t -> Deftypes.mkind option -> Obc.left_state_value
val left_value_index : Obc.left_value -> Zident.t list -> Obc.left_value
val left_state_value_index :
Obc.left_state_value ->
Zident.t list ->
Obc.left_state_value
val letpat : Obc.pattern -> Obc.exp -> code -> code
Generate the code for the definition of a value
val letvar :
(Zident.t * Obc.is_mutable * Deftypes.typ * Obc.exp option) list ->
Obc.inst ->
Obc.inst
Generate the code for initializing shared variables
val out_of :
Zident.Env.key ->
entry Zident.Env.t ->
Zident.t * Deftypes.typ * Deftypes.tsort * loop_path
val size_of_type : Deftypes.size -> Obc.size
Translate size expressions
val size : Zelus.size -> Obc.size
Translate size expressions
val choose : 'a -> Deftypes.typ -> Obc.exp option
val default : 'a -> Deftypes.typ -> Deftypes.constant option -> Obc.exp option
Computes a default value
val append :
loop_path ->
Deftypes.tentry Zident.Env.t ->
entry Zident.Env.t ->
entry Zident.Env.t
* Obc.mentry Zmisc.State.t
* (Zident.Env.key * bool * Deftypes.typ * Obc.exp option) list
Extension of an environment
val apply :
Deftypes.kind ->
'a ->
Zident.t list ->
Obc.exp ->
Obc.exp list ->
code ->
Obc.exp * code
Translation of a stateful function application f se1 ... sen e
Translation of expressions under an environment env
val pattern : Zelus.pattern -> Obc.pattern
Patterns
val match_handlers :
entry Zident.Env.t ->
loop_path ->
Zelus.eq list Zelus.block Zelus.match_handler list ->
Obc.inst Obc.match_handler list * code
val local : entry Zident.Env.t -> loop_path -> Zelus.local -> Zelus.exp -> code
val block :
entry Zident.Env.t ->
loop_path ->
Zelus.eq list Zelus.block ->
code
val add_mem_vars_to_code :
code ->
Obc.mentry Zmisc.State.t ->
(Zident.Env.key * Obc.is_mutable * Deftypes.typ * Obc.exp option) list ->
code
val machine :
Obc.name ->
Zelus.kind ->
Obc.pattern list ->
code ->
Deftypes.typ ->
Obc.implementation
val expression : entry Zident.Env.t -> Zelus.exp -> code
val implementation :
Zelus.implementation_desc Zelus.localized ->
Obc.implementation
Translation of a declaration
val implementation_list :
Zelus.implementation_desc Zelus.localized list ->
Obc.implementation list
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>