aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/erl_parse.yrl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2010-04-23 04:32:51 +0000
committerErlang/OTP <[email protected]>2010-04-23 04:32:51 +0000
commitc725744dc889d43a66883ac54b778fca2083a2b4 (patch)
treec5c03b58be9db2832df98797d615300a048d92d5 /lib/stdlib/src/erl_parse.yrl
parent280317139a17259fd7bf1dd8bbc95bee52c053b0 (diff)
parent45c380d1b77198449fb8e3beadb39dc8f77abb72 (diff)
downloadotp-c725744dc889d43a66883ac54b778fca2083a2b4.tar.gz
otp-c725744dc889d43a66883ac54b778fca2083a2b4.tar.bz2
otp-c725744dc889d43a66883ac54b778fca2083a2b4.zip
Merge branch 'ta/nested-records' into dev
* ta/nested-records: Document R14 paren-less record access/update Support nested record field access without parentheses OTP-8597 ta/nested-records Nested records can now be accessed without parenthesis. See the Reference Manual for examples. (Thanks to YAMASHINA Hio and Tuncer Ayaz.)
Diffstat (limited to 'lib/stdlib/src/erl_parse.yrl')
-rw-r--r--lib/stdlib/src/erl_parse.yrl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stdlib/src/erl_parse.yrl b/lib/stdlib/src/erl_parse.yrl
index 7145cf13fd..69807aad83 100644
--- a/lib/stdlib/src/erl_parse.yrl
+++ b/lib/stdlib/src/erl_parse.yrl
@@ -335,6 +335,10 @@ record_expr -> expr_max '#' atom '.' atom :
{record_field,?line('$2'),'$1',element(3, '$3'),'$5'}.
record_expr -> expr_max '#' atom record_tuple :
{record,?line('$2'),'$1',element(3, '$3'),'$4'}.
+record_expr -> record_expr '#' atom '.' atom :
+ {record_field,?line('$2'),'$1',element(3, '$3'),'$5'}.
+record_expr -> record_expr '#' atom record_tuple :
+ {record,?line('$2'),'$1',element(3, '$3'),'$4'}.
record_tuple -> '{' '}' : [].
record_tuple -> '{' record_fields '}' : '$2'.