From 3f5bff968fb10c9aec21ddd63f16164ac501bd07 Mon Sep 17 00:00:00 2001 From: Nicolai Date: Mon, 25 Jul 2016 17:28:30 +0200 Subject: Add StorageLocation --- libsolidity/grammar.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index 63201711..9facdea4 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -31,9 +31,10 @@ ParameterList = '(' ( VariableDeclaration (',' VariableDeclaration)* )? ')' // semantic restriction: mappings and structs (recursively) containing mappings // are not allowed in argument lists VariableDeclaration = TypeName Identifier -TypeName = ElementaryTypeName | Identifier | Mapping | ArrayTypeName +TypeName = ElementaryTypeName | Identifier StorageLocation? | Mapping | ArrayTypeName Mapping = 'mapping' '(' ElementaryTypeName '=>' TypeName ')' -ArrayTypeName = TypeName '[' Expression? ']' +ArrayTypeName = TypeName StorageLocation? '[' Expression? ']' +StorageLocation = 'memory' | 'storage' Block = '{' Statement* '}' Statement = IfStatement | WhileStatement | ForStatement | Block | -- cgit