diff options
author | Ben Burdette <bburdette@gmail.com> | 2021-12-27 16:28:45 -0700 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2021-12-27 16:28:45 -0700 |
commit | 6801a423fc9abdfd2cb7307f2970553bcfad089d (patch) | |
tree | d4bf48a4f83f939636d5afc96f51378a3aa436c4 /src/libexpr | |
parent | 2a66c120e66953bf8d6cf6866eb2783549527d40 (diff) |
:d env
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/eval.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index d99e73471..f1e6cfdf2 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -691,10 +691,14 @@ std::optional<EvalState::Doc> EvalState::getDoc(Value & v) void printStaticEnvBindings(const StaticEnv &se, int lvl) { + std::cout << "Env level " << lvl << std::endl; + for (auto i = se.vars.begin(); i != se.vars.end(); ++i) { - std::cout << lvl << i->first << std::endl; + std::cout << i->first << " "; } + std::cout << std::endl; + std::cout << std::endl; if (se.up) { printStaticEnvBindings(*se.up, ++lvl); @@ -730,7 +734,6 @@ void mapStaticEnvBindings(const StaticEnv &se, const Env &env, valmap & vm) } } - valmap * mapStaticEnvBindings(const StaticEnv &se, const Env &env) { auto vm = new valmap(); |