summaryrefslogtreecommitdiff
path: root/examples/tutorial/resource-foods/ExtFoods.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2007-09-06 13:06:22 +0000
committeraarne <aarne@cs.chalmers.se>2007-09-06 13:06:22 +0000
commite68a4c82a7188da9cb09256abf122c9d177770d8 (patch)
tree6874cb5b65c070682a4446a6e20f8aab310d71ea /examples/tutorial/resource-foods/ExtFoods.gf
parent10f621045a53c3a2b75195f355e362537ac6f08b (diff)
comented ExtFoods
Diffstat (limited to 'examples/tutorial/resource-foods/ExtFoods.gf')
-rw-r--r--examples/tutorial/resource-foods/ExtFoods.gf27
1 files changed, 14 insertions, 13 deletions
diff --git a/examples/tutorial/resource-foods/ExtFoods.gf b/examples/tutorial/resource-foods/ExtFoods.gf
index fa417190e..22b65a3c0 100644
--- a/examples/tutorial/resource-foods/ExtFoods.gf
+++ b/examples/tutorial/resource-foods/ExtFoods.gf
@@ -3,25 +3,26 @@ abstract ExtFoods = Foods ** {
flags startcat=Move ;
cat
- Move ;
- Verb ;
- Guest ;
- GuestKind ;
+ Move ; -- declarative, question, or imperative
+ Verb ; -- transitive verb
+ Guest ; -- guest in restaurant
+ GuestKind ; -- type of guest
fun
- MAssert : Phrase -> Move ;
- MDeny : Phrase -> Move ;
- MAsk : Phrase -> Move ;
+ MAssert : Phrase -> Move ; -- This pizza is warm.
+ MDeny : Phrase -> Move ; -- This pizza isn't warm.
+ MAsk : Phrase -> Move ; -- Is this pizza warm?
- PVerb : Guest -> Verb -> Item -> Phrase ;
- PVerbWant : Guest -> Verb -> Item -> Phrase ;
+ PVerb : Guest -> Verb -> Item -> Phrase ; -- we eat this pizza
+ PVerbWant : Guest -> Verb -> Item -> Phrase ; -- we want to eat this pizza
- WhichVerb : Kind -> Guest -> Verb -> Move ;
+ WhichVerb : Kind -> Guest -> Verb -> Move ; -- Which pizza do you eat?
WhichVerbWant : Kind -> Guest -> Verb -> Move ;
- WhichIs : Kind -> Quality -> Move ;
+ -- Which pizza do you want to eat?
+ WhichIs : Kind -> Quality -> Move ; -- Which wine is Italian?
- Do : Verb -> Item -> Move ;
- DoPlease : Verb -> Item -> Move ;
+ Do : Verb -> Item -> Move ; -- Pay this wine!
+ DoPlease : Verb -> Item -> Move ; -- Pay this wine please!
I, You, We : Guest ;