X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/57e066bb6c8ab3b21df9d16d35f6877659bf868b..ebb51f80568cc35cf3cd2f99a31a28f72526798d:/src/env.sig diff --git a/src/env.sig b/src/env.sig index 0a50620..6668c5e 100644 --- a/src/env.sig +++ b/src/env.sig @@ -1,5 +1,6 @@ (* HCoop Domtool (http://hcoop.sourceforge.net/) * Copyright (c) 2006, Adam Chlipala + * Copyright (c) 2014 Clinton Ebadi * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -73,6 +74,9 @@ signature ENV = sig val action_three : string -> string * 'a arg * string * 'b arg * string * 'c arg -> ('a * 'b * 'c -> unit) -> unit + val action_four : string + -> string * 'a arg * string * 'b arg * string * 'c arg * string * 'd arg + -> ('a * 'b * 'c * 'd -> unit) -> unit val actionV_none : string -> (env_vars -> unit) -> unit val actionV_one : string -> string * 'a arg -> (env_vars * 'a -> unit) -> unit @@ -90,16 +94,22 @@ signature ENV = sig type env val empty : env + val initialDynEnvTypes : env -> Ast.typ Ast.StringMap.map + val initialDynEnvVals : (env -> Ast.exp -> Ast.exp) -> env -> env_vars + val bindType : env -> string -> env val bindVal : env -> string * Ast.typ * Ast.exp option -> env val bindContext : env -> string -> env + val bindInitialDynEnvVal : env -> string * Ast.typ * Ast.exp -> env val lookupType : env -> string -> bool val lookupVal : env -> string -> Ast.typ option - val lookupEquation : env -> string -> Ast.exp option + val lookupEquation : env -> string -> (Ast.exp * env) option val lookupContext : env -> string -> bool + val lookupInitialDynEnvVal : env -> string -> Ast.typ option val types : env -> Ast.StringSet.set val vals : env -> Ast.StringSet.set val contexts : env -> Ast.StringSet.set + val dynamics : env -> Ast.StringSet.set end