* Realisation of Derive(...) expressions.
This commit is contained in:
parent
3da9687854
commit
40b5936691
7 changed files with 193 additions and 165 deletions
22
src/test.cc
22
src/test.cc
|
|
@ -13,7 +13,9 @@
|
|||
|
||||
void realise(FState fs)
|
||||
{
|
||||
realiseFState(fs);
|
||||
cout << format("%1% => %2%\n")
|
||||
% printTerm(fs)
|
||||
% printTerm(realiseFState(fs));
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -145,15 +147,25 @@ void runTests()
|
|||
"File(<str>, Hash(<str>), [])",
|
||||
builder1fn.c_str(),
|
||||
((string) builder1h).c_str());
|
||||
realiseFState(fs1);
|
||||
realiseFState(fs1);
|
||||
realise(fs1);
|
||||
realise(fs1);
|
||||
|
||||
FState fs2 = ATmake(
|
||||
"File(<str>, Hash(<str>), [])",
|
||||
(builder1fn + "_bla").c_str(),
|
||||
((string) builder1h).c_str());
|
||||
realiseFState(fs2);
|
||||
realiseFState(fs2);
|
||||
realise(fs2);
|
||||
realise(fs2);
|
||||
|
||||
string out1fn = nixStore + "/hello.txt";
|
||||
FState fs3 = ATmake(
|
||||
"Derive(<str>, <str>, [<term>], <str>, [(\"out\", <str>)])",
|
||||
thisSystem.c_str(),
|
||||
builder1fn.c_str(),
|
||||
fs1,
|
||||
out1fn.c_str(),
|
||||
out1fn.c_str());
|
||||
realise(fs3);
|
||||
|
||||
#if 0
|
||||
Expr e1 = ATmake("Exec(Str(<str>), Hash(<str>), [])",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue