// ============================================================ // BusRoute.cd : Class dictionary for bus routes. // Written by Ali Ozmez for the COM3360 project. // Last update on Tue Nov 28 17:11:12 1995. // ============================================================ BusRoute = "BusRoute:" RouteName "total" "route" "length" ":" RouteLen "consisting" "of" "bus" "stops" ":" List(BusStop) "with" "assigned" "busses" ":" List(Bus). BusStop = StopId "at:" RouteLoc // clockwise dist. from origin "with" "waiting" "list" ":" List(Person). Bus = BusId "at:" RouteLoc // clockwise dist. from origin [ "currently" "at" "stop" ":" StopId] "capacity:" BusCapac "speed:" BusSpeed "carrying" "passenger(s)" ":" List(Person). Person = PersonId "destination:" StopId. // id of the dest. stop List(S) ~ "(" { S } ")". RouteName = String. RouteLen = Integer "ft". RouteLoc = Integer "ft". BusCapac = Integer "passengers". BusSpeed = Integer "ft/min". StopId = Ident. BusId = Ident. PersonId = Ident. Main = .