1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 06:21:14 +02:00

* An attribute set update operator (//). E.g.,

{x=1; y=2; z=3;} // {y=4;}  =>  {x=1; y=4; z=3;}
This commit is contained in:
Eelco Dolstra 2004-02-04 16:49:51 +00:00
parent 6d46e647ba
commit 9d25466b34
3 changed files with 19 additions and 0 deletions

View file

@ -57,6 +57,7 @@ inherit { return INHERIT; }
\&\& { return AND; }
\|\| { return OR; }
\-\> { return IMPL; }
\/\/ { return UPDATE; }
{ID} { yylval->t = ATmake("<str>", yytext); return ID; /* !!! alloc */ }
{INT} { int n = atoi(yytext); /* !!! overflow */