aboutsummaryrefslogtreecommitdiffstats
path: root/grammar.txt
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-20 04:05:47 +0800
committerChristian <c@ethdev.com>2015-01-20 06:35:04 +0800
commitaf92f98d86ba1e15e3f41ac49bb9639be1ab4e41 (patch)
treee42cff46c9701491a43e58bebd8ead5b3e5241ec /grammar.txt
parent6e111d5d1da2a0ae397fa2bd846d13132cdd6dd9 (diff)
downloaddexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.tar
dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.tar.gz
dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.tar.bz2
dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.tar.lz
dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.tar.xz
dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.tar.zst
dexon-solidity-af92f98d86ba1e15e3f41ac49bb9639be1ab4e41.zip
Constructor arguments for base classes.
Diffstat (limited to 'grammar.txt')
-rw-r--r--grammar.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/grammar.txt b/grammar.txt
index f06d4def..11d99854 100644
--- a/grammar.txt
+++ b/grammar.txt
@@ -1,7 +1,10 @@
-ContractDefinition = 'contract' Identifier '{' ContractPart* '}'
+ContractDefinition = 'contract' Identifier
+ ( 'is' InheritanceSpecifier (',' InheritanceSpecifier )* )?
+ '{' ContractPart* '}'
ContractPart = VariableDeclaration ';' | StructDefinition |
FunctionDefinition | 'public:' | 'private:'
+InheritanceSpecifier = Identifier ( '(' Expression ( ',' Expression )* ')' )?
StructDefinition = 'struct' Identifier '{'
( VariableDeclaration (';' VariableDeclaration)* )? '}