diff options
author | walter-weinmann <walter.weinmann@gmail.com> | 2016-09-06 17:53:27 +0800 |
---|---|---|
committer | walter-weinmann <walter.weinmann@gmail.com> | 2016-09-06 17:53:46 +0800 |
commit | 70d91462db154eed74b5c75faa204b11a98ed73e (patch) | |
tree | 4b625bd8cc79819ac069459140ce0cd676fc5f1e /libsolidity/grammar.txt | |
parent | 215fc048575bfb4d4949bf6d16a4e4b6bc024769 (diff) | |
download | dexon-solidity-70d91462db154eed74b5c75faa204b11a98ed73e.tar dexon-solidity-70d91462db154eed74b5c75faa204b11a98ed73e.tar.gz dexon-solidity-70d91462db154eed74b5c75faa204b11a98ed73e.tar.bz2 dexon-solidity-70d91462db154eed74b5c75faa204b11a98ed73e.tar.lz dexon-solidity-70d91462db154eed74b5c75faa204b11a98ed73e.tar.xz dexon-solidity-70d91462db154eed74b5c75faa204b11a98ed73e.tar.zst dexon-solidity-70d91462db154eed74b5c75faa204b11a98ed73e.zip |
Considering comment from @chriseth regarding FunctionCall.
Diffstat (limited to 'libsolidity/grammar.txt')
-rw-r--r-- | libsolidity/grammar.txt | 4 |
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)? |