X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/e796bbff6e92d00cafc7ce7c25d9586952a88171..e140629ff492a6440c7b0d892d27ed443a2f9cd9:/src/order.sml diff --git a/src/order.sml b/src/order.sml index b58c9f7..117a0ea 100644 --- a/src/order.sml +++ b/src/order.sml @@ -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 @@ -134,6 +135,11 @@ fun declNeeded G (d, _, _) = NONE => expNeeded G e | SOME t => unionCTE ((typNeeded G t, SS.empty), expNeeded G e)) + | DEnv (name, to, e) => (Env.bindInitialDynEnvVal G (name, dt, (Ast.ESkip, ErrorMsg.dummyLoc)), + case to of + NONE => expNeeded G e + | SOME t => unionCTE ((typNeeded G t, SS.empty), + expNeeded G e)) | DContext name => (Env.bindContext G name, empty) fun fileSig (_, ds, eo) =