mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 09:42:50 -06:00
changed names of resource-1.3; added a note on homepage on release
This commit is contained in:
15
old-examples/regulus/toy0/example-based/Toy0.gf
Normal file
15
old-examples/regulus/toy0/example-based/Toy0.gf
Normal file
@@ -0,0 +1,15 @@
|
||||
-- toy0 grammar from Chapter 2 of the Regulus book
|
||||
abstract Toy0 = {
|
||||
|
||||
flags startcat=NP ;
|
||||
|
||||
cat
|
||||
NP ;
|
||||
Noun ;
|
||||
Spec ;
|
||||
|
||||
fun
|
||||
SpecNoun : Spec -> Noun -> NP ;
|
||||
One, Two : Spec ;
|
||||
Felis, Canis : Noun ;
|
||||
}
|
||||
6
old-examples/regulus/toy0/example-based/Toy0Ger.gf
Normal file
6
old-examples/regulus/toy0/example-based/Toy0Ger.gf
Normal file
@@ -0,0 +1,6 @@
|
||||
--# -path=.:present:prelude
|
||||
|
||||
concrete Toy0Ger of Toy0 = Toy0I with
|
||||
(Grammar = GrammarGer),
|
||||
(Lexicon = LexiconGer) ;
|
||||
|
||||
23
old-examples/regulus/toy0/example-based/Toy0I.gfe
Normal file
23
old-examples/regulus/toy0/example-based/Toy0I.gfe
Normal file
@@ -0,0 +1,23 @@
|
||||
--# -resource=present/LangEng.gfc
|
||||
--# -path=.:present:prelude
|
||||
|
||||
-- to compile: gf -examples Toy0I.gfe
|
||||
|
||||
incomplete concrete Toy0I 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