Skip to content

Instantly share code, notes, and snippets.

@rightfold

rightfold/.ml Secret

Last active November 19, 2015 13:27
Show Gist options
  • Save rightfold/2b7e70829b04b41faade to your computer and use it in GitHub Desktop.
Save rightfold/2b7e70829b04b41faade to your computer and use it in GitHub Desktop.
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