mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Imports => ImportDirective
This commit is contained in:
parent
e584a8396a
commit
ec0933bf9f
@ -1,11 +1,12 @@
|
||||
ContractDefinition = ('import' Imports ';')*
|
||||
( 'contract' | 'library' ) Identifier
|
||||
SourceUnit = (ImportDirective ';')* ContractDefinition
|
||||
|
||||
ContractDefinition = ( 'contract' | 'library' ) Identifier
|
||||
( 'is' InheritanceSpecifier (',' InheritanceSpecifier )* )?
|
||||
'{' ContractPart* '}'
|
||||
|
||||
Imports = StringLiteral ('as' Identifier)?
|
||||
| ('*' | Identifier) ('as' Identifier)? 'from' StringLiteral
|
||||
| '{' Identifier ('as' Identifier)? ( ',' Identifier ('as' Identifier)? )* '}' 'from' StringLiteral
|
||||
ImportDirective = 'import' StringLiteral ('as' Identifier)?
|
||||
| 'import' ('*' | Identifier) ('as' Identifier)? 'from' StringLiteral
|
||||
| 'import' '{' Identifier ('as' Identifier)? ( ',' Identifier ('as' Identifier)? )* '}' 'from' StringLiteral
|
||||
|
||||
ContractPart = StateVariableDecOrDef | UsingDeclaration
|
||||
| StructDefinition | ModifierDefinition | FunctionDefinition | EventDefinition | EnumDefinition
|
||||
|
Loading…
Reference in New Issue
Block a user