Bigraph.CtrlOperations on bigraphical controls.
val pp :
Ppx_deriving_runtime.Format.formatter ->
t ->
Ppx_deriving_runtime.unitval to_yojson : t -> Yojson.Safe.tval of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_ormake s ~params i creates a control named s of arity i with parameters params (defaults to []). Name s must match the following regexp: "^[A-Z][a-zA-Z0-9_']*$". Note: no check is performed.
val arity : t -> intarity c returns the arity of control c.
Compares controls. Equal names imply equal arities and parameter types. Parameters are compared structurally. No check is performed.
val hash : t -> intHash consistent with compare.
same_signature c1 c2 is true when c1 and c2 have the same name and arity, ignoring parameter differences.
val hash_signature : t -> intHash consistent with compare_signature.
Directional pattern matching. Checks name, arity, and parameter compatibility. A Cons pattern matches a Val target when the constraint is satisfied; two Vals match when equal.
val show : t -> stringReturn a string containing the name of a control and the values of its parameters. For example, "A(3.4,4)".
val name : t -> stringname c returns the name of control c, i.e. parameters are dropped.
Evaluate a control's parameters within the given environment to allow lazy eval.
Ground the Expr parameters that reference a name in names: each is evaluated against the env bindings restricted to names and becomes a Val (an unbound reference raises Expr.EXP_ERROR, as the corresponding enumerated rule would). Parameters not referencing a names keep their current semantics: a Val is a value check, an Expr is a name-blind wildcard. Used on the condition patterns of factored rules: grounding makes the pattern identical to the corresponding family member's stored pattern.