diff options
author | Björn-Egil Dahlberg <[email protected]> | 2014-03-17 17:47:00 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2014-03-17 17:47:35 +0100 |
commit | fb3ffad98fb1b35d096eaa3ce941b8390395ae8c (patch) | |
tree | 6733b384a94660e3298b298e57b0b1fe7352c496 /lib/compiler/src/core_parse.yrl | |
parent | 5d75a3b453b64ae1b10c8980ec5c146d7b2d5d1a (diff) | |
download | otp-fb3ffad98fb1b35d096eaa3ce941b8390395ae8c.tar.gz otp-fb3ffad98fb1b35d096eaa3ce941b8390395ae8c.tar.bz2 otp-fb3ffad98fb1b35d096eaa3ce941b8390395ae8c.zip |
compiler: Change #c_map{var} to #c_map{arg}
Not only variables are allowed as arguments, the name should reflect that.
Change cerl Map argument interface
* cerl:map_arg/1 is more suitable then cerl:map_val/1 in this case.
Diffstat (limited to 'lib/compiler/src/core_parse.yrl')
-rw-r--r-- | lib/compiler/src/core_parse.yrl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler/src/core_parse.yrl b/lib/compiler/src/core_parse.yrl index 8d07ab42b0..a66ad4235f 100644 --- a/lib/compiler/src/core_parse.yrl +++ b/lib/compiler/src/core_parse.yrl @@ -286,8 +286,8 @@ tuple -> '{' anno_expressions '}' : c_tuple('$2'). map_expr -> '~' '{' '}' '~' : #c_map{es=[]}. map_expr -> '~' '{' map_pairs '}' '~' : #c_map{es='$3'}. -map_expr -> '~' '{' map_pairs '|' variable '}' '~' : #c_map{var='$5',es='$3'}. -map_expr -> '~' '{' map_pairs '|' map_expr '}' '~' : #c_map{var='$5',es='$3'}. +map_expr -> '~' '{' map_pairs '|' variable '}' '~' : #c_map{arg='$5',es='$3'}. +map_expr -> '~' '{' map_pairs '|' map_expr '}' '~' : #c_map{arg='$5',es='$3'}. map_pairs -> map_pair : ['$1']. map_pairs -> map_pair ',' map_pairs : ['$1' | '$3']. |