mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -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" ;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user