This repository has been archived on 2024-01-18. You can view files and clone it, but cannot push or open issues or pull requests.
compilation/flap/src/hopix/hopixASTHelper.ml
2023-10-04 15:40:22 +02:00

15 lines
300 B
OCaml

open HopixAST
module LabelSet = Set.Make (struct
type t = label
let compare = compare
end)
module TypeVariableSet = Set.Make (struct
type t = type_variable
let compare = compare
end)
let fresh_identifier =
let count = ref (-1) in
fun () -> incr count; Id ("id" ^ string_of_int !count)