diff options
author | chriseth <c@ethdev.com> | 2016-09-05 22:13:31 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-09-05 22:13:31 +0800 |
commit | 3b2174f7a82fec7ed8ef2e55ec00996fac32c948 (patch) | |
tree | ccb846dc3e4474724b63dbbf4e8ce2161aee0158 /libsolidity/grammar.txt | |
parent | 02984b8de11a9dc6ab88788bfae82530b073f1f6 (diff) | |
download | dexon-solidity-3b2174f7a82fec7ed8ef2e55ec00996fac32c948.tar.gz dexon-solidity-3b2174f7a82fec7ed8ef2e55ec00996fac32c948.tar.zst dexon-solidity-3b2174f7a82fec7ed8ef2e55ec00996fac32c948.zip |
Update grammar.txt to reflect the change.
Diffstat (limited to 'libsolidity/grammar.txt')
-rw-r--r-- | libsolidity/grammar.txt | 5 |
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 )? |