1
0
forked from GitHub/gf-core
Files
gf-core/gf-book/examples/chapter2/TicketEng.gf
2011-01-11 15:46:43 +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" ;
}