mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add EventDefinition
This commit is contained in:
parent
68b72d8667
commit
f76616889a
@ -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)* '}'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user