aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorwalter-weinmann <walter.weinmann@gmail.com>2016-09-06 17:53:27 +0800
committerwalter-weinmann <walter.weinmann@gmail.com>2016-09-06 17:53:46 +0800
commit70d91462db154eed74b5c75faa204b11a98ed73e (patch)
tree4b625bd8cc79819ac069459140ce0cd676fc5f1e /libsolidity
parent215fc048575bfb4d4949bf6d16a4e4b6bc024769 (diff)
downloaddexon-solidity-70d91462db154eed74b5c75faa204b11a98ed73e.tar.gz
dexon-solidity-70d91462db154eed74b5c75faa204b11a98ed73e.tar.zst
dexon-solidity-70d91462db154eed74b5c75faa204b11a98ed73e.zip
Considering comment from @chriseth regarding FunctionCall.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/grammar.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt
index e636fd72..755cf281 100644
--- a/libsolidity/grammar.txt
+++ b/libsolidity/grammar.txt
@@ -79,12 +79,10 @@ Expression =
PrimaryExpression = Identifier | BooleanLiteral | NumberLiteral | StringLiteral
-FunctionCall = ( MemberAccessFunctionCall | IndexAccessFunctionCall ) '(' Expression? ( ',' Expression )* ')'
+FunctionCall = ( PrimaryExpression | NewExpression | TypeName ) ( ( '.' Identifier ) | ( '[' Expression ']' ) )* '(' Expression? ( ',' Expression )* ')'
NewExpression = 'new' Identifier
MemberAccess = Expression '.' Identifier
-MemberAccessFunctionCall = ( PrimaryExpression | NewExpression | TypeName ) ( '.' ( PrimaryExpression | NewExpression | TypeName ) )*
IndexAccess = Expression '[' Expression? ']'
-IndexAccessFunctionCall = ( PrimaryExpression | NewExpression | TypeName ) '[' Expression? ']'
BooleanLiteral = 'true' | 'false'
NumberLiteral = '0x'? [0-9]+ (' ' NumberUnit)?