From 2a7b01982c2b49399b9ee0dd89c7827af28c6280 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Sat, 24 Dec 2016 13:00:11 -0300 Subject: Fix StorageLocation position for ArrayTypeName rule in grammar --- docs/grammar.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/grammar.txt') 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' -- cgit