mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-29 12:48:54 -06:00
example-based Toy0
This commit is contained in:
6
examples/regulus/toy0/Toy0GerE.gf
Normal file
6
examples/regulus/toy0/Toy0GerE.gf
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
--# -path=.:present:prelude
|
||||||
|
|
||||||
|
concrete Toy0GerE of Toy0 = Toy0IE with
|
||||||
|
(Grammar = GrammarGer),
|
||||||
|
(Lexicon = LexiconGer) ;
|
||||||
|
|
||||||
23
examples/regulus/toy0/Toy0IE.gfe
Normal file
23
examples/regulus/toy0/Toy0IE.gfe
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
--# -resource=/home/aarne/GF/lib/present/LangEng.gfc
|
||||||
|
--# -path=.:present:prelude
|
||||||
|
|
||||||
|
-- to compile: gf -examples Toy0IE.gfe
|
||||||
|
|
||||||
|
incomplete concrete Toy0IE of Toy0 = open Grammar, Lexicon in {
|
||||||
|
|
||||||
|
lincat
|
||||||
|
Spec = Det ;
|
||||||
|
Noun = N ;
|
||||||
|
NP = Utt ;
|
||||||
|
|
||||||
|
lin
|
||||||
|
SpecNoun every_Det house_N = in Utt "every house" ;
|
||||||
|
|
||||||
|
One = in Det "one" ;
|
||||||
|
Two = in Det "two" ;
|
||||||
|
|
||||||
|
Felis = in N "cat" ;
|
||||||
|
Canis = in N "dog" ;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -124,5 +124,6 @@ gfdoc:
|
|||||||
mv ../prelude/*.html doc/gfdoc
|
mv ../prelude/*.html doc/gfdoc
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-rm */*.gfc */*.gfr */*.gf~
|
-rm */*.gfc */*.gfr */*.gf~ ../*/*.gfc ../*/*.gfr ../*/*.gf~ ../compiled.tgz langs.gfcm
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user