aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-09-05 22:13:31 +0800
committerchriseth <c@ethdev.com>2016-09-05 22:13:31 +0800
commit3b2174f7a82fec7ed8ef2e55ec00996fac32c948 (patch)
treeccb846dc3e4474724b63dbbf4e8ce2161aee0158
parent02984b8de11a9dc6ab88788bfae82530b073f1f6 (diff)
downloaddexon-solidity-3b2174f7a82fec7ed8ef2e55ec00996fac32c948.tar.gz
dexon-solidity-3b2174f7a82fec7ed8ef2e55ec00996fac32c948.tar.zst
dexon-solidity-3b2174f7a82fec7ed8ef2e55ec00996fac32c948.zip
Update grammar.txt to reflect the change.
-rw-r--r--libsolidity/grammar.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt
index 0230729a..86df3db0 100644
--- a/libsolidity/grammar.txt
+++ b/libsolidity/grammar.txt
@@ -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 )?