summaryrefslogtreecommitdiff
path: root/book/examples/chapter7/Map.gf
diff options
context:
space:
mode:
Diffstat (limited to 'book/examples/chapter7/Map.gf')
-rw-r--r--book/examples/chapter7/Map.gf10
1 files changed, 10 insertions, 0 deletions
diff --git a/book/examples/chapter7/Map.gf b/book/examples/chapter7/Map.gf
new file mode 100644
index 000000000..52deebb87
--- /dev/null
+++ b/book/examples/chapter7/Map.gf
@@ -0,0 +1,10 @@
+abstract Map = {
+flags startcat = Query ;
+cat
+ Query ; Input ; Place ; Click ;
+fun
+ GoFromTo : Place -> Place -> Input ;
+ ThisPlace : Click -> Place ;
+ QueryInput : Input -> Query ;
+ ClickCoord : Int -> Int -> Click ;
+}