mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add StorageLocation
This commit is contained in:
parent
1a661c562a
commit
3f5bff968f
@ -31,9 +31,10 @@ ParameterList = '(' ( VariableDeclaration (',' VariableDeclaration)* )? ')'
|
|||||||
// semantic restriction: mappings and structs (recursively) containing mappings
|
// semantic restriction: mappings and structs (recursively) containing mappings
|
||||||
// are not allowed in argument lists
|
// are not allowed in argument lists
|
||||||
VariableDeclaration = TypeName Identifier
|
VariableDeclaration = TypeName Identifier
|
||||||
TypeName = ElementaryTypeName | Identifier | Mapping | ArrayTypeName
|
TypeName = ElementaryTypeName | Identifier StorageLocation? | Mapping | ArrayTypeName
|
||||||
Mapping = 'mapping' '(' ElementaryTypeName '=>' TypeName ')'
|
Mapping = 'mapping' '(' ElementaryTypeName '=>' TypeName ')'
|
||||||
ArrayTypeName = TypeName '[' Expression? ']'
|
ArrayTypeName = TypeName StorageLocation? '[' Expression? ']'
|
||||||
|
StorageLocation = 'memory' | 'storage'
|
||||||
|
|
||||||
Block = '{' Statement* '}'
|
Block = '{' Statement* '}'
|
||||||
Statement = IfStatement | WhileStatement | ForStatement | Block |
|
Statement = IfStatement | WhileStatement | ForStatement | Block |
|
||||||
|
Loading…
Reference in New Issue
Block a user