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

16 lines
300 B
OCaml
Raw Normal View History

2023-10-04 15:40:22 +02:00
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)