aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-11-12 00:39:56 +0800
committerGitHub <noreply@github.com>2016-11-12 00:39:56 +0800
commit7820f80192807b228e57ad9879d5ce2787a4d278 (patch)
treef6d004781687253a51d7ae4e7404935866d8a912 /libsolidity
parent6248e92d77673eaf2c851b9dd0b1811248a24b58 (diff)
parent1e845c279b3a86c87b56e1007406a96d55004a9c (diff)
downloaddexon-solidity-7820f80192807b228e57ad9879d5ce2787a4d278.tar.gz
dexon-solidity-7820f80192807b228e57ad9879d5ce2787a4d278.tar.zst
dexon-solidity-7820f80192807b228e57ad9879d5ce2787a4d278.zip
Merge pull request #1355 from ethereum/chriseth-patch-2
Fix semicolons
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/grammar.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt
index 586c41e9..3edb4eba 100644
--- a/libsolidity/grammar.txt
+++ b/libsolidity/grammar.txt
@@ -41,8 +41,8 @@ ArrayTypeName = TypeName StorageLocation? '[' Expression? ']'
StorageLocation = 'memory' | 'storage'
Block = '{' Statement* '}'
-Statement = IfStatement | WhileStatement | DoWhileStatement | ForStatement | Block |
- ( PlaceholderStatement | Continue | Break | Return |
+Statement = IfStatement | WhileStatement | ForStatement | Block |
+ ( DoWhileStatement | PlaceholderStatement | Continue | Break | Return |
Throw | SimpleStatement ) ';'
ExpressionStatement = Expression
@@ -51,7 +51,7 @@ WhileStatement = 'while' '(' Expression ')' Statement
PlaceholderStatement = '_'
SimpleStatement = VariableDefinition | ExpressionStatement
ForStatement = 'for' '(' (SimpleStatement)? ';' (Expression)? ';' (ExpressionStatement)? ')' Statement
-DoWhileStatement = 'do' Statement 'while' '(' Expression ')' ';'
+DoWhileStatement = 'do' Statement 'while' '(' Expression ')'
Continue = 'continue'
Break = 'break'
Return = 'return' Expression?