forked from GitHub/gf-core
example of example-based grammar writing
This commit is contained in:
15
examples/animals/Koe.gfe
Normal file
15
examples/animals/Koe.gfe
Normal file
@@ -0,0 +1,15 @@
|
||||
-- to compile: echo "eb -file=QuestionsI.gfe" | gf $GF_LIB_PATH/present/LangEng.gfo
|
||||
-- or use directly gf <mkAnimals.gfs
|
||||
|
||||
incomplete concrete QuestionsI of Questions = open Lang in {
|
||||
lincat
|
||||
Phrase = Utt ;
|
||||
Entity = N ;
|
||||
Action = V2 ;
|
||||
|
||||
lin
|
||||
Who love_V2 man_N = %ex Utt "who loves men" ;
|
||||
Whom man_N love_V2 = %ex Utt "whom does the man love and chase" ;
|
||||
Answer woman_N love_V2 man_N = %ex Utt "the woman loves and chases men" ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user