mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Considering comment from @chriseth regarding FunctionCall.
This commit is contained in:
parent
215fc04857
commit
70d91462db
@ -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)?
|
||||
|
Loading…
Reference in New Issue
Block a user