mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +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:
parent
6d46e647ba
commit
9d25466b34
3 changed files with 19 additions and 0 deletions
|
@ -42,6 +42,7 @@ void yyerror(YYLTYPE * loc, yyscan_t scanner, void * data, char * s)
|
|||
%left OR
|
||||
%left AND
|
||||
%nonassoc EQ NEQ
|
||||
%right UPDATE
|
||||
%left NEG
|
||||
|
||||
%%
|
||||
|
@ -69,6 +70,7 @@ expr_op
|
|||
| expr_op AND expr_op { $$ = ATmake("OpAnd(<term>, <term>)", $1, $3); }
|
||||
| expr_op OR expr_op { $$ = ATmake("OpOr(<term>, <term>)", $1, $3); }
|
||||
| expr_op IMPL expr_op { $$ = ATmake("OpImpl(<term>, <term>)", $1, $3); }
|
||||
| expr_op UPDATE expr_op { $$ = ATmake("OpUpdate(<term>, <term>)", $1, $3); }
|
||||
| expr_app
|
||||
;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue