1
0
Fork 0
This repository has been archived on 2024-05-03. You can view files and clone it, but cannot push or open issues or pull requests.
unification-pfa/lib/identifier.ml
Mylloon 83b2039262
* Add dummy implementation
* Add Identifier.t
* WIP: typeof? (idk what Im doing)
2024-03-14 22:24:38 +01:00

9 lines
150 B
OCaml

type t = string [@@deriving eq, ord, show]
let fresh =
let r = ref 0 in
fun () ->
let id = "id_" ^ string_of_int !r in
incr r;
id
;;