Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
3 lines (2 sloc) 11.1 KB
<?xml version="1.0" encoding="UTF-8"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"><bgf:production><nonterminal>AddressInfo</nonterminal><bgf:expression><nonterminal>Office</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>AddressInfo</nonterminal><bgf:expression><nonterminal>Customer</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>Date</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>year</selector><bgf:expression><nonterminal>Integer</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>month</selector><bgf:expression><nonterminal>Integer</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>day</selector><bgf:expression><nonterminal>Integer</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>ClassicModels</nonterminal><bgf:expression><sequence><bgf:expression><plus><bgf:expression><selectable><selector>offices</selector><bgf:expression><nonterminal>Office</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>productLines</selector><bgf:expression><nonterminal>ProductLine</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>customers</selector><bgf:expression><nonterminal>Customer</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>ProductLine</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>productLineOwner</selector><bgf:expression><nonterminal>ClassicModels</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>products</selector><bgf:expression><nonterminal>Product</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><selectable><selector>name</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>textDescription</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>htmlDescription</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Product</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>productLine</selector><bgf:expression><nonterminal>ProductLine</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>code</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>name</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>scale</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>vendor</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>description</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>quantityInStock</selector><bgf:expression><nonterminal>Integer</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>buyPrice</selector><bgf:expression><nonterminal>Double</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>MSRP</selector><bgf:expression><nonterminal>Double</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Office</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>officeOwner</selector><bgf:expression><nonterminal>ClassicModels</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>code</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>employees</selector><bgf:expression><nonterminal>Employee</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><selectable><selector>territory</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Employee</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>office</selector><bgf:expression><nonterminal>Office</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>number</selector><bgf:expression><nonterminal>Integer</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>employeeCustomers</selector><bgf:expression><nonterminal>Customer</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><selectable><selector>lastName</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>firstName</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>extension</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>email</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>reportsTo</selector><bgf:expression><nonterminal>Employee</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>jobTitle</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Customer</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>customerOwner</selector><bgf:expression><nonterminal>ClassicModels</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>number</selector><bgf:expression><nonterminal>Integer</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>orders</selector><bgf:expression><nonterminal>Order</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>payments</selector><bgf:expression><nonterminal>Payment</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><selectable><selector>salesRepEmployee</selector><bgf:expression><nonterminal>Employee</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>name</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>contactLastName</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>contactFirstName</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>creditLimit</selector><bgf:expression><nonterminal>Double</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Payment</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>customer</selector><bgf:expression><nonterminal>Customer</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>checkNumber</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>date</selector><bgf:expression><nonterminal>Date</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>amount</selector><bgf:expression><nonterminal>Double</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Order</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>customer</selector><bgf:expression><nonterminal>Customer</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>orderDetails</selector><bgf:expression><nonterminal>OrderDetail</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><selectable><selector>number</selector><bgf:expression><nonterminal>Integer</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>date</selector><bgf:expression><nonterminal>Date</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>requiredDate</selector><bgf:expression><nonterminal>Date</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>shippedDate</selector><bgf:expression><nonterminal>Date</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>status</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>comments</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>OrderDetail</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>order</selector><bgf:expression><nonterminal>Order</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>product</selector><bgf:expression><nonterminal>Product</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>quantityOrdered</selector><bgf:expression><nonterminal>Integer</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>priceEach</selector><bgf:expression><nonterminal>Double</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>String</nonterminal><bgf:expression><value>string</value></bgf:expression></bgf:production><bgf:production><nonterminal>Integer</nonterminal><bgf:expression><value>int</value></bgf:expression></bgf:production></bgf:grammar>