mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
* String/path concatenation operator (`+').
This commit is contained in:
parent
ee401afad8
commit
9fa07b376d
6 changed files with 43 additions and 5 deletions
|
@ -53,6 +53,7 @@ ATerm makePos(YYLTYPE * loc, void * data)
|
|||
%nonassoc EQ NEQ
|
||||
%right UPDATE
|
||||
%left NEG
|
||||
%left '+'
|
||||
%nonassoc '?'
|
||||
%nonassoc '~'
|
||||
|
||||
|
@ -90,6 +91,7 @@ expr_op
|
|||
| expr_op UPDATE expr_op { $$ = ATmake("OpUpdate(<term>, <term>)", $1, $3); }
|
||||
| expr_op '~' expr_op { $$ = ATmake("SubPath(<term>, <term>)", $1, $3); }
|
||||
| expr_op '?' ID { $$ = ATmake("OpHasAttr(<term>, <term>)", $1, $3); }
|
||||
| expr_op '+' expr_op { $$ = ATmake("OpPlus(<term>, <term>)", $1, $3); }
|
||||
| expr_app
|
||||
;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue