mirror of
https://github.com/NixOS/nix
synced 2025-06-30 19:57:59 +02:00
* Boolean constants.
This commit is contained in:
parent
adf9a45469
commit
40986312bb
4 changed files with 24 additions and 5 deletions
|
@ -50,6 +50,12 @@ struct Cleanup : TermFun
|
|||
return ATmake("Int(<int>)", n);
|
||||
}
|
||||
|
||||
if (ATmatch(e, "Bool(\"true\")", &s))
|
||||
return ATmake("Bool(True)");
|
||||
|
||||
if (ATmatch(e, "Bool(\"false\")", &s))
|
||||
return ATmake("Bool(False)");
|
||||
|
||||
return e;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue