From 399e1fe70cc82092034818acb35ae0c8ed5d01c2 Mon Sep 17 00:00:00 2001 From: Nicolai Date: Tue, 9 Aug 2016 11:53:38 +0200 Subject: Add syntax for fallback functions --- libsolidity/grammar.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsolidity/grammar.txt') diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index f113f9c3..6d92fc59 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -18,7 +18,7 @@ UsingForDeclaration = 'using' Identifier 'for' ('*' | TypeName) ';' StructDefinition = 'struct' Identifier '{' ( VariableDeclaration ';' (VariableDeclaration ';')* )? '}' ModifierDefinition = 'modifier' Identifier ParameterList? Block -FunctionDefinition = 'function' Identifier ParameterList +FunctionDefinition = 'function' Identifier? ParameterList ( FunctionCall | Identifier | 'constant' | 'external' | 'public' | 'internal' | 'private' )* ( 'returns' ParameterList )? Block EventDefinition = 'event' Identifier IndexedParameterList 'anonymous'? ';' -- cgit