Source file event.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(**********************************************************************)
(*                                                                    *)
(*              This file is part of the FSML library                 *)
(*                     github.com/jserot/fsml                         *)
(*                                                                    *)
(*  Copyright (c) 2020-present, Jocelyn SEROT.  All rights reserved.  *)
(*                                                                    *)
(*  This source code is licensed under the license found in the       *)
(*  LICENSE file in the root directory of this source tree.           *)
(*                                                                    *)
(**********************************************************************)

type t = Expr.ident * Expr.e_val
  [@@deriving show {with_path=false}]

let to_string a = match a with
  | (id, v) -> id ^ ":=" ^ Expr.string_of_value v