summaryrefslogtreecommitdiff
path: root/doc/tutorial/FoodEng.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/FoodEng.gf
parenta205829623ea7b928c84e56cd6453148f123a3d5 (diff)
new tutorial example
Diffstat (limited to 'doc/tutorial/FoodEng.gf')
-rw-r--r--doc/tutorial/FoodEng.gf23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/tutorial/FoodEng.gf b/doc/tutorial/FoodEng.gf
new file mode 100644
index 000000000..f75727292
--- /dev/null
+++ b/doc/tutorial/FoodEng.gf
@@ -0,0 +1,23 @@
+concrete FoodEng of Food = {
+
+ lincat
+ S, Item, Kind, Quality = {s : Str} ;
+
+ lin
+ Is item quality = {s = item.s ++ "is" ++ quality.s} ;
+ This kind = {s = "this" ++ kind.s} ;
+ That kind = {s = "that" ++ kind.s} ;
+ QKind quality kind = {s = quality.s ++ kind.s} ;
+ Wine = {s = "wine"} ;
+ Cheese = {s = "cheese"} ;
+ Fish = {s = "fish"} ;
+ Very quality = {s = "very" ++ quality.s} ;
+ Fresh = {s = "fresh"} ;
+ Warm = {s = "warm"} ;
+ Italian = {s = "Italian"} ;
+ Expensive = {s = "expensive"} ;
+ Delicious = {s = "delicious"} ;
+ Boring = {s = "boring"} ;
+
+}
+ \ No newline at end of file