Browsable BIRT ClassicModels Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: dsl/business/birt/classic/extracted
Source used for this grammar: Hugo Brunelière, ClassicModels BIRT Sample database, ClassicModels.ecore, 2007/02/16

Summary

Syntax

AddressInfo ::=
	Office
AddressInfo ::=
	Customer
Date ::=
	[year]::Integer [month]::Integer [day]::Integer
ClassicModels ::=
	[offices]::Office+ [productLines]::ProductLine+ [customers]::Customer+
ProductLine ::=
	[productLineOwner]::ClassicModels [products]::Product+ [name]::String [textDescription]::String [htmlDescription]::String
Product ::=
	[productLine]::ProductLine [code]::String [name]::String [scale]::String [vendor]::String [description]::String [quantityInStock]::Integer [buyPrice]::Double [MSRP]::Double
Office ::=
	[officeOwner]::ClassicModels [code]::String [employees]::Employee+ [territory]::String
Employee ::=
	[office]::Office [number]::Integer [employeeCustomers]::Customer+ [lastName]::String [firstName]::String [extension]::String [email]::String [reportsTo]::Employee [jobTitle]::String
Customer ::=
	[customerOwner]::ClassicModels [number]::Integer [orders]::Order+ [payments]::Payment+ [salesRepEmployee]::Employee [name]::String [contactLastName]::String [contactFirstName]::String [creditLimit]::Double
Payment ::=
	[customer]::Customer [checkNumber]::String [date]::Date [amount]::Double
Order ::=
	[customer]::Customer [orderDetails]::OrderDetail+ [number]::Integer [date]::Date [requiredDate]::Date [shippedDate]::Date [status]::String [comments]::String
OrderDetail ::=
	[order]::Order [product]::Product [quantityOrdered]::Integer [priceEach]::Double
String ::=
	string
Integer ::=
	integer

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []