diff options
author | Nicolai <NicolaiSoeborg@users.noreply.github.com> | 2016-07-20 21:59:00 +0800 |
---|---|---|
committer | Nicolai <NicolaiSoeborg@users.noreply.github.com> | 2016-07-20 21:59:00 +0800 |
commit | f76616889a743cc76c746e92b4e86bcd9ef56815 (patch) | |
tree | bb46996ef37301b28ce0ce8274affc9096225a2a /libsolidity | |
parent | 68b72d866708f7ff0485ab815c52dec7274ee8b5 (diff) | |
download | dexon-solidity-f76616889a743cc76c746e92b4e86bcd9ef56815.tar.gz dexon-solidity-f76616889a743cc76c746e92b4e86bcd9ef56815.tar.zst dexon-solidity-f76616889a743cc76c746e92b4e86bcd9ef56815.zip |
Add EventDefinition
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/grammar.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index c70f56bd..afeb1d00 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -1,7 +1,7 @@ ContractDefinition = ( 'contract' | 'library' ) Identifier ( 'is' InheritanceSpecifier (',' InheritanceSpecifier )* )? '{' ContractPart* '}' -ContractPart = StateVariableDeclaration | StructDefinition | ModifierDefinition | FunctionDefinition | EnumDefinition +ContractPart = StateVariableDeclaration | StructDefinition | ModifierDefinition | FunctionDefinition | EventDefinition | EnumDefinition InheritanceSpecifier = Identifier ( '(' Expression ( ',' Expression )* ')' )? StructDefinition = 'struct' Identifier '{' @@ -12,6 +12,8 @@ FunctionDefinition = 'function' Identifier ParameterList ( Identifier | 'constant' | 'external' | 'public' | 'internal' | 'private' )* ( 'returns' (ParameterList | TypeParameterList) )? Block +EventDefinition = 'event' Identifier (ParameterList | TypeParameterList) ';' + EnumValue = Identifier EnumDefinition = 'enum' Identifier '{' EnumValue? (',' EnumValue)* '}' |