mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update grammar.txt to reflect the change.
This commit is contained in:
parent
02984b8de1
commit
3b2174f7a8
@ -41,8 +41,9 @@ ArrayTypeName = TypeName StorageLocation? '[' Expression? ']'
|
||||
StorageLocation = 'memory' | 'storage'
|
||||
|
||||
Block = '{' Statement* '}'
|
||||
Statement = IfStatement | WhileStatement | ForStatement | Block | PlaceholderStatement |
|
||||
( Continue | Break | Return | Throw | SimpleStatement | ExpressionStatement ) ';'
|
||||
Statement = IfStatement | WhileStatement | ForStatement | Block |
|
||||
( PlaceholderStatement | Continue | Break | Return |
|
||||
Throw | SimpleStatement | ExpressionStatement ) ';'
|
||||
|
||||
ExpressionStatement = Expression | VariableDefinition
|
||||
IfStatement = 'if' '(' Expression ')' Statement ( 'else' Statement )?
|
||||
|
Loading…
Reference in New Issue
Block a user