mirror of
https://github.com/NixOS/nix
synced 2025-06-29 23:13:14 +02:00
* More operators / primops.
This commit is contained in:
parent
c9170be2bd
commit
47df476daa
5 changed files with 145 additions and 187 deletions
|
@ -71,9 +71,13 @@ void processExpr(EvalState & state, const Strings & attrPaths,
|
|||
bool parseOnly, bool strict, const ATermMap & autoArgs,
|
||||
bool evalOnly, bool xmlOutput, Expr e)
|
||||
{
|
||||
Value v;
|
||||
state.strictEval(e, v);
|
||||
std::cout << v << std::endl;
|
||||
if (parseOnly)
|
||||
std::cout << format("%1%\n") % canonicaliseExpr(e);
|
||||
else {
|
||||
Value v;
|
||||
state.strictEval(e, v);
|
||||
std::cout << v << std::endl;
|
||||
}
|
||||
|
||||
#if 0
|
||||
for (Strings::const_iterator i = attrPaths.begin(); i != attrPaths.end(); ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue