diff options
author | Ben Burdette <bburdette@gmail.com> | 2021-12-20 12:32:21 -0700 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2021-12-20 12:32:21 -0700 |
commit | f317019edda7afac8590e68d4d979b03a2cdbf62 (patch) | |
tree | 7720ebe8cc936b5d801acdad65d34591b6ef615e /src/libexpr | |
parent | c151a9b4262dfc5fc251ed0ebcf862731b0f795c (diff) |
:d error
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/eval.hh | 1 | ||||
-rw-r--r-- | src/libexpr/parser.y | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 485c2df83..4b3e7d69a 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -26,6 +26,7 @@ typedef void (* PrimOpFun) (EvalState & state, const Pos & pos, Value * * args, extern std::function<void(const Error & error, const Env & env, const Expr & expr)> debuggerHook; void printStaticEnvBindings(const Expr &expr); +void printStaticEnvBindings(const StaticEnv &se, int lvl = 0); struct PrimOp { diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index 58af0df7d..066dc4ecc 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -21,6 +21,7 @@ #include "nixexpr.hh" #include "eval.hh" #include "globals.hh" +#include <iostream> namespace nix { @@ -615,6 +616,10 @@ Expr * EvalState::parse(const char * text, FileOrigin origin, if (res) throw ParseError(data.error.value()); + std::cout << " data.result->bindVars(staticEnv); " << std::endl; + + // printStaticEnvBindings(*staticEnv, 0); + data.result->bindVars(staticEnv); return data.result; |