summaryrefslogtreecommitdiff
path: root/examples/tram/Tram.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2005-12-09 16:29:49 +0000
committeraarne <aarne@cs.chalmers.se>2005-12-09 16:29:49 +0000
commit8ee11c0e7edaa32b606ac96ec24cc2f8d0bca2e3 (patch)
tree853eecdc16c18d7815892dd80c02bdce97532160 /examples/tram/Tram.gf
parent5766d566a8477cd8d651eb51cd6fb2359a976be5 (diff)
tram with new API
Diffstat (limited to 'examples/tram/Tram.gf')
-rw-r--r--examples/tram/Tram.gf33
1 files changed, 33 insertions, 0 deletions
diff --git a/examples/tram/Tram.gf b/examples/tram/Tram.gf
new file mode 100644
index 000000000..bcd9f7b7c
--- /dev/null
+++ b/examples/tram/Tram.gf
@@ -0,0 +1,33 @@
+abstract Tram = {
+
+cat
+ Dep ; -- from here, from Angered
+ Dest ; -- to here, to Angered
+ Query ; -- message sent to the dialogue manager: sequentialized
+ Input ; -- user input: parallel text and clicks
+ Click ; -- map clicks
+
+fun
+ QInput : Input -> Query ; -- sequentialize user input
+
+fun
+ GoFromTo : Dep -> Dest -> Input ; -- user input "want to go from a to b"
+ GoToFrom : Dest -> Dep -> Input ; -- user input "want to go to a from b"
+ ComeFrom : Dep -> Input ; -- user input "want to come from x (to where I am now)
+ GoTo : Dest -> Input ; -- user input "want to go to x (from where I am now)
+
+ DepClick : Click -> Dep ; -- "from here" with click
+ DestClick : Click -> Dest ; -- "to here" with click
+ DepHere : Dep ; -- "from here" indexical
+ DestHere : Dest ; -- "to here" indexical
+ DepNamed : String -> Dep ; -- from a place name
+ DestNamed : String -> Dest ; -- to a place name
+
+ CCoord : Int -> Int -> Click ;
+
+--- the syntax of here (prep + adverb, not prep + np) prevent these
+-- Place ; -- any way to identify a place: name, click, or indexical "here"
+-- PClick : Click -> Place ; -- click associated with a "here"
+-- PHere : Place ; -- indexical "here", without a click
+
+}