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'
|
StorageLocation = 'memory' | 'storage'
|
||||||
|
|
||||||
Block = '{' Statement* '}'
|
Block = '{' Statement* '}'
|
||||||
Statement = IfStatement | WhileStatement | ForStatement | Block | PlaceholderStatement |
|
Statement = IfStatement | WhileStatement | ForStatement | Block |
|
||||||
( Continue | Break | Return | Throw | SimpleStatement | ExpressionStatement ) ';'
|
( PlaceholderStatement | Continue | Break | Return |
|
||||||
|
Throw | SimpleStatement | ExpressionStatement ) ';'
|
||||||
|
|
||||||
ExpressionStatement = Expression | VariableDefinition
|
ExpressionStatement = Expression | VariableDefinition
|
||||||
IfStatement = 'if' '(' Expression ')' Statement ( 'else' Statement )?
|
IfStatement = 'if' '(' Expression ')' Statement ( 'else' Statement )?
|
||||||
|
Loading…
Reference in New Issue
Block a user