summaryrefslogtreecommitdiff
path: root/doc/tutorial-next/Food.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2007-07-03 15:29:23 +0000
committeraarne <aarne@cs.chalmers.se>2007-07-03 15:29:23 +0000
commit3e174603abf15a5875db512aa45ad78cd5a019e4 (patch)
treec605cbf35d3ff84e8de7ecaff4a595ea6b4eea83 /doc/tutorial-next/Food.gf
parent064df9267c125a878c0f41c9ffb5ed373b02f927 (diff)
contents of new tutorial
Diffstat (limited to 'doc/tutorial-next/Food.gf')
-rw-r--r--doc/tutorial-next/Food.gf14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/tutorial-next/Food.gf b/doc/tutorial-next/Food.gf
new file mode 100644
index 000000000..1a2d38d1e
--- /dev/null
+++ b/doc/tutorial-next/Food.gf
@@ -0,0 +1,14 @@
+abstract Food = {
+
+ cat
+ S ; Item ; Kind ; Quality ;
+
+ fun
+ Is : Item -> Quality -> S ;
+ This, That : Kind -> Item ;
+ QKind : Quality -> Kind -> Kind ;
+ Wine, Cheese, Fish : Kind ;
+ Very : Quality -> Quality ;
+ Fresh, Warm, Italian, Expensive, Delicious, Boring : Quality ;
+
+} \ No newline at end of file