mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-25 12:32:50 -06:00
prepared mini syntax example
This commit is contained in:
23
doc/tutorial/resource/TestEng.gf
Normal file
23
doc/tutorial/resource/TestEng.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -path=.:resource:prelude
|
||||
|
||||
concrete TestEng of Test = SyntaxEng ** open Prelude, MorphoEng in {
|
||||
|
||||
lin
|
||||
Wine = regNoun "wine" ;
|
||||
Cheese = regNoun "cheese" ;
|
||||
Fish = mkNoun "fish" "fish" ;
|
||||
Pizza = regNoun "pizza" ;
|
||||
Waiter = regNoun "waiter" ;
|
||||
Customer = regNoun "customer" ;
|
||||
Fresh = ss "fresh" ;
|
||||
Warm = ss "warm" ;
|
||||
Italian = ss "Italian" ;
|
||||
Expensive = ss "expensive" ;
|
||||
Delicious = ss "delicious" ;
|
||||
Boring = ss "boring" ;
|
||||
Stink = regVerb "stink" ;
|
||||
Eat = regVerb "eat" ** {c = []} ;
|
||||
Love = regVerb "love" ** {c = []} ;
|
||||
Talk = regVerb "talk" ** {c = "about"} ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user