mirror of
https://github.com/NixOS/nix.git
synced 2025-11-17 07:52:43 +01:00
* Simplify the evaluator.
This commit is contained in:
parent
c739e20585
commit
a7ab242fb4
3 changed files with 50 additions and 63 deletions
|
|
@ -12,10 +12,8 @@
|
|||
|
||||
void evalTest(Expr e)
|
||||
{
|
||||
EvalResult r = evalValue(e);
|
||||
|
||||
char * s = ATwriteToString(r.e);
|
||||
cout << (string) r.h << ": " << s << endl;
|
||||
e = evalValue(e);
|
||||
cout << (string) hashExpr(e) << ": " << printExpr(e) << endl;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue