package fsml

  1. Overview
  2. Docs

Module Fsml.GuardSource

Transition guards

Sourcetype t = Expr.t

The type of guards associated to transitions. Guards are just boolean expressions.

Sourceval to_yojson : t -> Yojson.Safe.t

Printing

Sourceval to_string : Expr.t -> string

Simulation

Sourceexception Illegal_guard_expr of Expr.t
Sourceval eval : Expr.env -> Expr.t -> bool

eval env e evaluates guard expression e in environment env, returning the corresponding boolean value. Raises Illegal_guard_expr if the expression does not denote a boolean value.