From 70d91462db154eed74b5c75faa204b11a98ed73e Mon Sep 17 00:00:00 2001 From: walter-weinmann Date: Tue, 6 Sep 2016 11:53:27 +0200 Subject: Considering comment from @chriseth regarding FunctionCall. --- libsolidity/grammar.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libsolidity') 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)? -- cgit