aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/parser.y
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2021-09-15 16:16:53 -0600
committerBen Burdette <bburdette@gmail.com>2021-09-15 16:16:53 -0600
commitcd8c232b554776031f61cee5f70a8825c60fbfdb (patch)
treee36bab7f8eeeeb683e0a0e4a3508129f8f3f4dbf /src/libexpr/parser.y
parent1e04b2568d4898d253891cd2a9da00754611d927 (diff)
add cout debugging
Diffstat (limited to 'src/libexpr/parser.y')
-rw-r--r--src/libexpr/parser.y11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y
index d1e898677..a3432eb32 100644
--- a/src/libexpr/parser.y
+++ b/src/libexpr/parser.y
@@ -22,6 +22,8 @@
#include "eval.hh"
#include "globals.hh"
+#include <iostream>
+
namespace nix {
struct ParseData
@@ -572,6 +574,10 @@ namespace nix {
Expr * EvalState::parse(const char * text, FileOrigin origin,
const Path & path, const Path & basePath, std::shared_ptr<StaticEnv> & staticEnv)
{
+ std::cout << "EvalState::parse " << std::endl;
+ for (auto i = staticEnv->vars.begin(); i != staticEnv->vars.end(); ++i)
+ std::cout << "EvalState::parse staticEnv " << i->first << std::endl;
+
yyscan_t scanner;
ParseData data(*this);
data.origin = origin;
@@ -595,8 +601,13 @@ Expr * EvalState::parse(const char * text, FileOrigin origin,
if (res) throw ParseError(data.error.value());
+
+ std::cout << "EvalState::parse pre bindvars " << std::endl;
+
data.result->bindVars(staticEnv);
+ std::cout << "EvalState::parse post bindVars " << std::endl;
+
return data.result;
}