mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-28 22:12:51 -06:00
updated resource example
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
abstract Animals = {
|
||||
cat
|
||||
Phrase ; Animal ; Action ;
|
||||
fun
|
||||
Who : Action -> Animal -> Phrase ;
|
||||
Whom : Animal -> Action -> Phrase ;
|
||||
Answer : Animal -> Action -> Animal -> Phrase ;
|
||||
-- The Question grammar specialized to animals.
|
||||
|
||||
Dog, Cat, Mouse, Lion, Zebra : Animal ;
|
||||
abstract Animals = Questions ** {
|
||||
|
||||
fun
|
||||
-- a lexicon of animals and actions among them
|
||||
Dog, Cat, Mouse, Lion, Zebra : Entity ;
|
||||
Chase, Eat, Like : Action ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user