mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 13:36:02 +01:00
add cout debugging
This commit is contained in:
parent
1e04b2568d
commit
cd8c232b55
7 changed files with 53 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue