diff options
author | Nicolai <NicolaiSoeborg@users.noreply.github.com> | 2016-07-30 21:34:46 +0800 |
---|---|---|
committer | Nicolai <NicolaiSoeborg@users.noreply.github.com> | 2016-07-30 21:34:46 +0800 |
commit | 35182c7305dcc92ec49c76c57a98296178459707 (patch) | |
tree | 2886610b046dd589727d564aae8f300fadfa00ca | |
parent | 97d7b8509c07db4bc3f1f99237b687351bd9d8fc (diff) | |
download | dexon-solidity-35182c7305dcc92ec49c76c57a98296178459707.tar.gz dexon-solidity-35182c7305dcc92ec49c76c57a98296178459707.tar.zst dexon-solidity-35182c7305dcc92ec49c76c57a98296178459707.zip |
Remove TypeParameterList
-rw-r--r-- | libsolidity/grammar.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index e38fdb54..f06f0479 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -20,15 +20,15 @@ StructDefinition = 'struct' Identifier '{' ModifierDefinition = 'modifier' Identifier ParameterList? Block FunctionDefinition = 'function' Identifier ParameterList ( FunctionCall | Identifier | 'constant' | 'external' | 'public' | 'internal' | 'private' )* - ( 'returns' (ParameterList | TypeParameterList) )? Block -EventDefinition = 'event' Identifier (ParameterList | TypeParameterList | IndexedTypeParameterList) 'anonymous'? ';' + ( 'returns' ParameterList )? Block +EventDefinition = 'event' Identifier (ParameterList | IndexedTypeParameterList) 'anonymous'? ';' EnumValue = Identifier EnumDefinition = 'enum' Identifier '{' EnumValue? (',' EnumValue)* '}' IndexedTypeParameterList = '(' ( TypeName 'indexed'? Identifier? (',' TypeName 'indexed'? Identifier?)* )? ')' -TypeParameterList = '(' ( TypeName (',' TypeName)* )? ')' -ParameterList = '(' ( VariableDeclaration (',' VariableDeclaration)* )? ')' +ParameterList = '(' ( TypeName Identifier? (',' TypeName Identifier?)* )? ')' + // semantic restriction: mappings and structs (recursively) containing mappings // are not allowed in argument lists VariableDeclaration = TypeName Identifier |