aboutsummaryrefslogtreecommitdiffstats
path: root/docs/grammar.txt
diff options
context:
space:
mode:
authorFederico Bond <federicobond@gmail.com>2017-01-11 12:33:17 +0800
committerFederico Bond <federicobond@gmail.com>2017-01-11 12:33:55 +0800
commitc15b0fb596a3466a8f31f9b4f9cd0289091264aa (patch)
treecc86b9b3bd1708b49183d24b11b3f5809606d11a /docs/grammar.txt
parentd61b911a3a02962d5c38ad8b77ab650352529659 (diff)
downloaddexon-solidity-c15b0fb596a3466a8f31f9b4f9cd0289091264aa.tar
dexon-solidity-c15b0fb596a3466a8f31f9b4f9cd0289091264aa.tar.gz
dexon-solidity-c15b0fb596a3466a8f31f9b4f9cd0289091264aa.tar.bz2
dexon-solidity-c15b0fb596a3466a8f31f9b4f9cd0289091264aa.tar.lz
dexon-solidity-c15b0fb596a3466a8f31f9b4f9cd0289091264aa.tar.xz
dexon-solidity-c15b0fb596a3466a8f31f9b4f9cd0289091264aa.tar.zst
dexon-solidity-c15b0fb596a3466a8f31f9b4f9cd0289091264aa.zip
grammar.txt: Add named function arguments
Diffstat (limited to 'docs/grammar.txt')
-rw-r--r--docs/grammar.txt8
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? ']'