Browsable Simple Airline Domain Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: §wip/atl/SimpleAirlineDomain/extracted
Source used for this grammar: Julien Baudry, Simple Airline Domain, SimpleAirlineDomain.ecore, 2006/07/10

Summary

Syntax

Airport ::=
	[name]::String [departingFlight]::Flight+ [arrivingFlight]::Flight+
Flight ::=
	[departTime]::Time [duration]::Time [maxnrPassengers]::Integer [passenger]::Passenger+ [airline]::Airline [origin]::Airport [destination]::Airport
Airline ::=
	[name]::String [nationality]::String [flight]::Flight+
Passenger ::=
	[name]::String [age]::Integer [gender]::Genre [needsAssistance]::Boolean [flight]::Flight
Genre ::=
	[male]::ε
	[female]::ε
Time ::=
	[year]::Integer [month]::Integer [day]::Integer [hour]::Integer [minute]::Integer [second]::Integer
Boolean ::=
	"true"
	"false"
Integer ::=
	integer
String ::=
	string

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