summaryrefslogtreecommitdiff
path: root/doc/tutorial/Food2Eng.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2005-12-18 21:26:21 +0000
committeraarne <aarne@cs.chalmers.se>2005-12-18 21:26:21 +0000
commit6398140d0ac21ad05a0c595b77007631cd5e1265 (patch)
treefae648d7e9e344fa850be37f1eb0b3b29e8f17e6 /doc/tutorial/Food2Eng.gf
parenta205829623ea7b928c84e56cd6453148f123a3d5 (diff)
new tutorial example
Diffstat (limited to 'doc/tutorial/Food2Eng.gf')
-rw-r--r--doc/tutorial/Food2Eng.gf23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/tutorial/Food2Eng.gf b/doc/tutorial/Food2Eng.gf
new file mode 100644
index 000000000..a92e426eb
--- /dev/null
+++ b/doc/tutorial/Food2Eng.gf
@@ -0,0 +1,23 @@
+concrete Food2Eng of Food = open StringOper in {
+
+ lincat
+ S, Item, Kind, Quality = SS ;
+
+ lin
+ Is item quality = cc item (prefix "is" quality) ;
+ This = prefix "this" ;
+ That = prefix "that" ;
+ QKind = cc ;
+ Wine = ss "wine" ;
+ Cheese = ss "cheese" ;
+ Fish = ss "fish" ;
+ Very = prefix "very" ;
+ Fresh = ss "fresh" ;
+ Warm = ss "warm" ;
+ Italian = ss "Italian" ;
+ Expensive = ss "expensive" ;
+ Delicious = ss "delicious" ;
+ Boring = ss "boring" ;
+
+}
+ \ No newline at end of file