Files
gf-core/book/examples/chapter2/TicketEng.gf
2010-11-22 12:55:37 +00:00

20 lines
358 B
Plaintext

concrete TicketEng of Ticket = {
lincat
Request, Station = Str ;
lin
Ticket X Y =
((("I" ++ ("would like" | "want") ++ "to get" |
("may" | "can") ++ "I get" |
"can you give me" |
[]) ++
"a ticket") |
[]) ++
"from" ++ X ++ "to" ++ Y ++
("please" | []) ;
Hamburg = "Hamburg" ;
Paris = "Paris" ;
}