diff options
author | Federico Bond <federicobond@gmail.com> | 2017-01-11 11:51:28 +0800 |
---|---|---|
committer | Federico Bond <federicobond@gmail.com> | 2017-01-11 12:33:33 +0800 |
commit | d61b911a3a02962d5c38ad8b77ab650352529659 (patch) | |
tree | 190f2dba6d00d6f918333e45d8cb7aec825f6a9c | |
parent | 26a90af4d2ffb6a78056cc825f490096e4cc7176 (diff) | |
download | dexon-solidity-d61b911a3a02962d5c38ad8b77ab650352529659.tar dexon-solidity-d61b911a3a02962d5c38ad8b77ab650352529659.tar.gz dexon-solidity-d61b911a3a02962d5c38ad8b77ab650352529659.tar.bz2 dexon-solidity-d61b911a3a02962d5c38ad8b77ab650352529659.tar.lz dexon-solidity-d61b911a3a02962d5c38ad8b77ab650352529659.tar.xz dexon-solidity-d61b911a3a02962d5c38ad8b77ab650352529659.tar.zst dexon-solidity-d61b911a3a02962d5c38ad8b77ab650352529659.zip |
grammar.txt: Move StorageLocation? up to VariableDeclaration
-rw-r--r-- | docs/grammar.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt index b5d2b780..2300dd00 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -35,10 +35,10 @@ TypeNameList = '(' ( TypeName (',' TypeName )* )? ')' // semantic restriction: mappings and structs (recursively) containing mappings // are not allowed in argument lists -VariableDeclaration = TypeName Identifier +VariableDeclaration = TypeName StorageLocation? Identifier TypeName = ElementaryTypeName - | UserDefinedTypeName StorageLocation? + | UserDefinedTypeName | Mapping | ArrayTypeName | FunctionTypeName @@ -46,7 +46,7 @@ TypeName = ElementaryTypeName UserDefinedTypeName = Identifier ( '.' Identifier )* Mapping = 'mapping' '(' ElementaryTypeName '=>' TypeName ')' -ArrayTypeName = TypeName '[' Expression? ']' StorageLocation? +ArrayTypeName = TypeName '[' Expression? ']' FunctionTypeName = 'function' TypeNameList ( 'internal' | 'external' | 'constant' | 'payable' )* ( 'returns' TypeNameList )? StorageLocation = 'memory' | 'storage' |