-
-
Save rightfold/2b7e70829b04b41faade to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open Ast | |
exception Refinition of string | |
exception Undefined of string | |
module Env : sig | |
type t | |
val empty : t | |
val derive : t -> t | |
val insert : string -> Ast.name -> t -> t | |
end = struct | |
module String_map = Map.Make (String) | |
type t = { parent : t option; names : Ast.name String_map.t } | |
let empty = { parent = None; names = String_map.empty } | |
end | |
let rename prefix modul = modul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment