aboutsummaryrefslogtreecommitdiffstats
path: root/docs/grammar.txt
diff options
context:
space:
mode:
authorFederico Bond <federicobond@gmail.com>2016-12-25 00:00:11 +0800
committerGitHub <noreply@github.com>2016-12-25 00:00:11 +0800
commit2a7b01982c2b49399b9ee0dd89c7827af28c6280 (patch)
tree2faf5d93f7661d446e4d68d8e7ee603db6ebf967 /docs/grammar.txt
parent3a88580512f6cb5f3305c371bbbdda8e47f44687 (diff)
downloaddexon-solidity-2a7b01982c2b49399b9ee0dd89c7827af28c6280.tar.gz
dexon-solidity-2a7b01982c2b49399b9ee0dd89c7827af28c6280.tar.zst
dexon-solidity-2a7b01982c2b49399b9ee0dd89c7827af28c6280.zip
Fix StorageLocation position for ArrayTypeName rule in grammar
Diffstat (limited to 'docs/grammar.txt')
-rw-r--r--docs/grammar.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt
index d15fbaf7..7bb45bba 100644
--- a/docs/grammar.txt
+++ b/docs/grammar.txt
@@ -38,7 +38,7 @@ TypeNameList = '(' ( TypeName (',' TypeName )* )? ')'
VariableDeclaration = TypeName Identifier
TypeName = ElementaryTypeName | Identifier StorageLocation? | Mapping | ArrayTypeName | FunctionTypeName
Mapping = 'mapping' '(' ElementaryTypeName '=>' TypeName ')'
-ArrayTypeName = TypeName StorageLocation? '[' Expression? ']'
+ArrayTypeName = TypeName '[' Expression? ']' StorageLocation?
FunctionTypeName = 'function' TypeNameList ( 'internal' | 'external' | 'constant' | 'payable' )*
( 'returns' TypeNameList )?
StorageLocation = 'memory' | 'storage'