package rfsm

  1. Overview
  2. Docs

Source file ident.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(**********************************************************************)
(*                                                                    *)
(*              This file is part of the RFSM package                 *)
(*                                                                    *)
(*  Copyright (c) 2018-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 =
  Local of string * string
| Global of string

let to_string = function
  | Local (l,i) -> l ^ "." ^ i
  | Global i -> i

let local_of = function
  | Local (l,_) -> l
  | Global _ -> ""
OCaml

Innovation. Community. Security.