mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1011 from walter-weinmann/wwe_grammar
Changes related to issues #984, #989, #999, #1001 and #1004.
This commit is contained in:
commit
fb73da30d8
@ -43,9 +43,9 @@ StorageLocation = 'memory' | 'storage'
|
||||
Block = '{' Statement* '}'
|
||||
Statement = IfStatement | WhileStatement | ForStatement | Block |
|
||||
( PlaceholderStatement | Continue | Break | Return |
|
||||
Throw | SimpleStatement | ExpressionStatement ) ';'
|
||||
Throw | SimpleStatement ) ';'
|
||||
|
||||
ExpressionStatement = Expression | VariableDefinition
|
||||
ExpressionStatement = Expression
|
||||
IfStatement = 'if' '(' Expression ')' Statement ( 'else' Statement )?
|
||||
WhileStatement = 'while' '(' Expression ')' Statement
|
||||
PlaceholderStatement = '_'
|
||||
@ -79,7 +79,7 @@ Expression =
|
||||
|
||||
PrimaryExpression = Identifier | BooleanLiteral | NumberLiteral | StringLiteral
|
||||
|
||||
FunctionCall = Identifier '(' Expression? ( ',' Expression )* ')'
|
||||
FunctionCall = ( PrimaryExpression | NewExpression | TypeName ) ( ( '.' Identifier ) | ( '[' Expression ']' ) )* '(' Expression? ( ',' Expression )* ')'
|
||||
NewExpression = 'new' Identifier
|
||||
MemberAccess = Expression '.' Identifier
|
||||
IndexAccess = Expression '[' Expression? ']'
|
||||
|
Loading…
Reference in New Issue
Block a user