diff options
author | Federico Bond <federicobond@gmail.com> | 2017-01-11 12:33:17 +0800 |
---|---|---|
committer | Federico Bond <federicobond@gmail.com> | 2017-01-11 12:33:55 +0800 |
commit | c15b0fb596a3466a8f31f9b4f9cd0289091264aa (patch) | |
tree | cc86b9b3bd1708b49183d24b11b3f5809606d11a /docs | |
parent | d61b911a3a02962d5c38ad8b77ab650352529659 (diff) | |
download | dexon-solidity-c15b0fb596a3466a8f31f9b4f9cd0289091264aa.tar.gz dexon-solidity-c15b0fb596a3466a8f31f9b4f9cd0289091264aa.tar.zst dexon-solidity-c15b0fb596a3466a8f31f9b4f9cd0289091264aa.zip |
grammar.txt: Add named function arguments
Diffstat (limited to 'docs')
-rw-r--r-- | docs/grammar.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt index 2300dd00..f45a62e7 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -97,7 +97,13 @@ PrimaryExpression = Identifier | StringLiteral | ElementaryTypeNameExpression -FunctionCall = ( PrimaryExpression | NewExpression | TypeName ) ( ( '.' Identifier ) | ( '[' Expression ']' ) )* '(' Expression? ( ',' Expression )* ')' +ExpressionList = Expression ( ',' Expression )* +NameValueList = Identifier ':' Expression ( ',' Identifier ':' Expression )* + +FunctionCall = ( PrimaryExpression | NewExpression | TypeName ) ( ( '.' Identifier ) | ( '[' Expression ']' ) )* '(' FunctionCallArguments ')' +FunctionCallArguments = '{' NameValueList? '}' + | ExpressionList? + NewExpression = 'new' Identifier MemberAccess = Expression '.' Identifier IndexAccess = Expression '[' Expression? ']' |