diff options
author | chriseth <chris@ethereum.org> | 2018-02-16 23:55:21 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-02-22 22:17:30 +0800 |
commit | 388718b59f604c944be6816ba50068014e563fb0 (patch) | |
tree | 0a3c4bf2b04a6aaba2c4beb40252617384159662 /docs | |
parent | 8fc9535d43df26001f7b34488d073c06fc4fd358 (diff) | |
download | dexon-solidity-388718b59f604c944be6816ba50068014e563fb0.tar dexon-solidity-388718b59f604c944be6816ba50068014e563fb0.tar.gz dexon-solidity-388718b59f604c944be6816ba50068014e563fb0.tar.bz2 dexon-solidity-388718b59f604c944be6816ba50068014e563fb0.tar.lz dexon-solidity-388718b59f604c944be6816ba50068014e563fb0.tar.xz dexon-solidity-388718b59f604c944be6816ba50068014e563fb0.tar.zst dexon-solidity-388718b59f604c944be6816ba50068014e563fb0.zip |
Introduce emit statement.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/grammar.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt index e700c946..a5c2acf3 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -63,7 +63,7 @@ StateMutability = 'pure' | 'constant' | 'view' | 'payable' Block = '{' Statement* '}' Statement = IfStatement | WhileStatement | ForStatement | Block | InlineAssemblyStatement | ( DoWhileStatement | PlaceholderStatement | Continue | Break | Return | - Throw | SimpleStatement ) ';' + Throw | EmitStatement | SimpleStatement ) ';' ExpressionStatement = Expression IfStatement = 'if' '(' Expression ')' Statement ( 'else' Statement )? @@ -77,6 +77,7 @@ Continue = 'continue' Break = 'break' Return = 'return' Expression? Throw = 'throw' +EmitStatement = 'emit' FunctionCall VariableDefinition = ('var' IdentifierList | VariableDeclaration) ( '=' Expression )? IdentifierList = '(' ( Identifier? ',' )* Identifier? ')' |