Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/company/extracted
Source used for this grammar: Julien Baudry, Company Structure, CompanyStructure.ecore
, 2006/07/20
Company
, CorporateHQ
, Store
, CorporateHQBackOffice
, StoreBackOffice
, Employee
, CashRegister
, Boolean
, Integer
, String
), 0 root (—), 4 top (Company
, Boolean
, Integer
, String
), 0 bottom (—).[corporateHQ]
, [Store]
, [manages]
, [corporateHQBackOffice]
, [storeBackOffice]
, [employee]
, [cashRegister]
.Company ::=
[corporateHQ]::CorporateHQ [Store]::Store
CorporateHQ ::=
[manages]::Store
[corporateHQBackOffice]::CorporateHQBackOfficeStore ::= [storeBackOffice]::StoreBackOffice [employee]::Employee[cashRegister]::CashRegister
CorporateHQBackOffice ::= ε
StoreBackOffice ::= ε
Employee ::= ε
CashRegister ::= ε
Boolean ::= "true" "false"
Integer ::= integer
String ::= string