Update grammar.txt to reflect the change.

This commit is contained in:
chriseth 2016-09-05 16:13:31 +02:00
parent 02984b8de1
commit 3b2174f7a8

View File

@ -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 )?