aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/grammar.txt
diff options
context:
space:
mode:
authorNicolai <NicolaiSoeborg@users.noreply.github.com>2016-07-20 21:59:00 +0800
committerNicolai <NicolaiSoeborg@users.noreply.github.com>2016-07-20 21:59:00 +0800
commitf76616889a743cc76c746e92b4e86bcd9ef56815 (patch)
treebb46996ef37301b28ce0ce8274affc9096225a2a /libsolidity/grammar.txt
parent68b72d866708f7ff0485ab815c52dec7274ee8b5 (diff)
downloaddexon-solidity-f76616889a743cc76c746e92b4e86bcd9ef56815.tar.gz
dexon-solidity-f76616889a743cc76c746e92b4e86bcd9ef56815.tar.zst
dexon-solidity-f76616889a743cc76c746e92b4e86bcd9ef56815.zip
Add EventDefinition
Diffstat (limited to 'libsolidity/grammar.txt')
-rw-r--r--libsolidity/grammar.txt4
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)* '}'