summaryrefslogtreecommitdiff
path: root/grammars/timetable/click.gf
diff options
context:
space:
mode:
authoraarne <unknown>2004-04-29 04:03:19 +0000
committeraarne <unknown>2004-04-29 04:03:19 +0000
commitb5bb4fc2b5b1d7e8ce17eb87722ba11e46a2ab2b (patch)
treed96f0012126c7c7a929fe1c0b4b600155672f8fa /grammars/timetable/click.gf
parent6993118eab6699182738ffcbddf03731ec41e1db (diff)
multimodality exx
Diffstat (limited to 'grammars/timetable/click.gf')
-rw-r--r--grammars/timetable/click.gf36
1 files changed, 36 insertions, 0 deletions
diff --git a/grammars/timetable/click.gf b/grammars/timetable/click.gf
new file mode 100644
index 000000000..d752fb027
--- /dev/null
+++ b/grammars/timetable/click.gf
@@ -0,0 +1,36 @@
+cat
+ Request ;
+ Place ;
+ Position ;
+
+fun
+ GoTo : Place -> Request ;
+ GoFromTo : Place -> Place -> Request ;
+
+ Named : String -> Place ;
+ Pointed : Position -> Place ;
+
+ Pos : Int -> Int -> Position ;
+
+lincat
+ Request, Place = {s,s2 : Str} ;
+
+lin
+ GoTo x = {
+ s = ["I want to go to"] ++ x.s ;
+ s2 = x.s2
+ } ;
+ GoFromTo x y = {
+ s = ["I want to go from"] ++ x.s ++ "to" ++ y.s ;
+ s2 = x.s2 ++ "," ++ y.s2
+ } ;
+
+ Named c = {
+ s = c.s ;
+ s2 = []
+ } ;
+ Pointed p = {
+ s = "here" ;
+ s2 = p.s
+ } ;
+ Pos x y = {s = "(" ++ x.s ++ "," ++ y.s ++ ")"} ;