diff options
Diffstat (limited to 'grammar.txt')
-rw-r--r-- | grammar.txt | 5 |
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)* )? '} |