From cde629d48d36aa7944a5e6c9a436b8a021c12f2d Mon Sep 17 00:00:00 2001 From: Nicolai Date: Wed, 27 Jul 2016 16:03:40 +0200 Subject: Added wildcard to UsingForDeclaration --- libsolidity/grammar.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index 23022676..02726a89 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -8,13 +8,13 @@ ImportDirective = 'import' StringLiteral ('as' Identifier)? | 'import' ('*' | Identifier) ('as' Identifier)? 'from' StringLiteral | 'import' '{' Identifier ('as' Identifier)? ( ',' Identifier ('as' Identifier)? )* '}' 'from' StringLiteral -ContractPart = StateVariableDecOrDef | UsingDeclaration +ContractPart = StateVariableDeclaration | UsingForDeclaration | StructDefinition | ModifierDefinition | FunctionDefinition | EventDefinition | EnumDefinition InheritanceSpecifier = Identifier ( '(' Expression ( ',' Expression )* ')' )? -StateVariableDecOrDef = TypeName ( 'public' | 'internal' | 'private' )? Identifier ('=' Expression)? ';' -UsingDeclaration = 'using' Identifier 'for' TypeName ';' +StateVariableDeclaration = TypeName ( 'public' | 'internal' | 'private' )? Identifier ('=' Expression)? ';' +UsingForDeclaration = 'using' Identifier 'for' ('*' | TypeName) ';' StructDefinition = 'struct' Identifier '{' ( VariableDeclaration ';' (VariableDeclaration ';')* )? '}' ModifierDefinition = 'modifier' Identifier ParameterList? Block -- cgit v1.2.3