summaryrefslogtreecommitdiff
path: root/book/examples/chapter2/TicketEng.gf
diff options
context:
space:
mode:
Diffstat (limited to 'book/examples/chapter2/TicketEng.gf')
-rw-r--r--book/examples/chapter2/TicketEng.gf19
1 files changed, 19 insertions, 0 deletions
diff --git a/book/examples/chapter2/TicketEng.gf b/book/examples/chapter2/TicketEng.gf
new file mode 100644
index 000000000..54e44741d
--- /dev/null
+++ b/book/examples/chapter2/TicketEng.gf
@@ -0,0 +1,19 @@
+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" ;
+
+}