mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-24 02:12:50 -06:00
Extending resource.
This commit is contained in:
16
grammars/database/Restaurant.gf
Normal file
16
grammars/database/Restaurant.gf
Normal file
@@ -0,0 +1,16 @@
|
||||
abstract Restaurant = Database ** {
|
||||
|
||||
fun
|
||||
Restaurant, Bar : Category ;
|
||||
French, Italian, Indian, Japanese : Property ;
|
||||
address, phone, priceLevel : Feature ;
|
||||
Cheap, Expensive : Comparison ;
|
||||
|
||||
WhoRecommend : Name -> Query ;
|
||||
WhoHellRecommend : Name -> Query ;
|
||||
|
||||
-- examples of restaurant names
|
||||
LucasCarton : Name ;
|
||||
LaCoupole : Name ;
|
||||
BurgerKing : Name ;
|
||||
} ;
|
||||
Reference in New Issue
Block a user