diff options
author | Nicolai <NicolaiSoeborg@users.noreply.github.com> | 2016-07-25 23:48:49 +0800 |
---|---|---|
committer | Nicolai <NicolaiSoeborg@users.noreply.github.com> | 2016-07-25 23:48:49 +0800 |
commit | 8b450dd8088e4104643ec2e73ef5f0ce4c833fc8 (patch) | |
tree | 6ef3eb394e5ce845cf49a099714b629d87948dfe /libsolidity/grammar.txt | |
parent | 3f5bff968fb10c9aec21ddd63f16164ac501bd07 (diff) | |
download | dexon-solidity-8b450dd8088e4104643ec2e73ef5f0ce4c833fc8.tar.gz dexon-solidity-8b450dd8088e4104643ec2e73ef5f0ce4c833fc8.tar.zst dexon-solidity-8b450dd8088e4104643ec2e73ef5f0ce4c833fc8.zip |
Added PlaceholderStatement
Diffstat (limited to 'libsolidity/grammar.txt')
-rw-r--r-- | libsolidity/grammar.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index 9facdea4..4fab1dd5 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -37,12 +37,13 @@ ArrayTypeName = TypeName StorageLocation? '[' Expression? ']' StorageLocation = 'memory' | 'storage' Block = '{' Statement* '}' -Statement = IfStatement | WhileStatement | ForStatement | Block | +Statement = IfStatement | WhileStatement | ForStatement | Block | PlaceholderStatement ( Continue | Break | Return | Throw | VardefOrExprStmt | ExpressionStatement ) ';' ExpressionStatement = Expression | VariableDefinition | Assignment | 'delete' Expression IfStatement = 'if' '(' Expression ')' Statement ( 'else' Statement )? WhileStatement = 'while' '(' Expression ')' Statement +PlaceholderStatement = '_' VardefOrExprStmt = VariableDefinition | ExpressionStatement ForStatement = 'for' '(' (VardefOrExprStmt)? ';' (Expression)? ';' (ExpressionStatement)? ')' Statement Continue = 'continue' |