aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorNicolai <NicolaiSoeborg@users.noreply.github.com>2016-08-09 17:53:38 +0800
committerNicolai <NicolaiSoeborg@users.noreply.github.com>2016-08-09 17:53:38 +0800
commit399e1fe70cc82092034818acb35ae0c8ed5d01c2 (patch)
tree6a3b545a18f98a01bdf9edb42092559c98fe67f8 /libsolidity
parentcc863b0a63f89d37765f0d7002e03d322dd6490e (diff)
downloaddexon-solidity-399e1fe70cc82092034818acb35ae0c8ed5d01c2.tar
dexon-solidity-399e1fe70cc82092034818acb35ae0c8ed5d01c2.tar.gz
dexon-solidity-399e1fe70cc82092034818acb35ae0c8ed5d01c2.tar.bz2
dexon-solidity-399e1fe70cc82092034818acb35ae0c8ed5d01c2.tar.lz
dexon-solidity-399e1fe70cc82092034818acb35ae0c8ed5d01c2.tar.xz
dexon-solidity-399e1fe70cc82092034818acb35ae0c8ed5d01c2.tar.zst
dexon-solidity-399e1fe70cc82092034818acb35ae0c8ed5d01c2.zip
Add syntax for fallback functions
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/grammar.txt2
1 files changed, 1 insertions, 1 deletions
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'? ';'