package rfsm
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Module type Guest.EVALSource
Dynamic semantics
val mk_env : unit -> envmk_env () should return a new, empty dynamic environment
val upd_env : Syntax.lval -> Value.t -> env -> envupd_env l v env should return the environment obtained by adding the binding (l,v) to env. If l is already bound in env, the associated value is updated.
Evaluators
exception Illegal_expr of Syntax.exprval eval_expr : env -> Syntax.expr -> Value.teval_expr env e should return the value obtained by evaluating expression e in environment env. Should raise Illegal_expr in case of failure.
val eval_bool : env -> Syntax.expr -> booleval_bool env e should return the boolean value obtained by evaluating expression e in environment env. Should raise Illegal_expr if e does not denote a boolean value or in case of failure.
Printing
val pp_env : Format.formatter -> env -> unitpp_env fmt env should print a readable representation of environment env on formatter fmt.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page