aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-03-27 21:38:28 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-03-27 22:49:41 +0800
commitb540ba527a70df440299de9c0bf44f9d11ac6ef6 (patch)
treee9a57df2cabfc118ba92f671d66f430c1936ec2c /docs
parent62559cf1278afc417d19ec181e2bced364cadea2 (diff)
downloaddexon-solidity-b540ba527a70df440299de9c0bf44f9d11ac6ef6.tar
dexon-solidity-b540ba527a70df440299de9c0bf44f9d11ac6ef6.tar.gz
dexon-solidity-b540ba527a70df440299de9c0bf44f9d11ac6ef6.tar.bz2
dexon-solidity-b540ba527a70df440299de9c0bf44f9d11ac6ef6.tar.lz
dexon-solidity-b540ba527a70df440299de9c0bf44f9d11ac6ef6.tar.xz
dexon-solidity-b540ba527a70df440299de9c0bf44f9d11ac6ef6.tar.zst
dexon-solidity-b540ba527a70df440299de9c0bf44f9d11ac6ef6.zip
Disallow empty structs
Diffstat (limited to 'docs')
-rw-r--r--docs/grammar.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt
index a5c2acf3..b4ca5ca9 100644
--- a/docs/grammar.txt
+++ b/docs/grammar.txt
@@ -19,7 +19,7 @@ InheritanceSpecifier = UserDefinedTypeName ( '(' Expression ( ',' Expression )*
StateVariableDeclaration = TypeName ( 'public' | 'internal' | 'private' | 'constant' )? Identifier ('=' Expression)? ';'
UsingForDeclaration = 'using' Identifier 'for' ('*' | TypeName) ';'
StructDefinition = 'struct' Identifier '{'
- ( VariableDeclaration ';' (VariableDeclaration ';')* )? '}'
+ ( VariableDeclaration ';' (VariableDeclaration ';')* ) '}'
ModifierDefinition = 'modifier' Identifier ParameterList? Block
ModifierInvocation = Identifier ( '(' ExpressionList? ')' )?