1
0
forked from GitHub/gf-core

changed names of resource-1.3; added a note on homepage on release

This commit is contained in:
aarne
2008-06-25 16:54:35 +00:00
parent b96b36f43d
commit e9e80fc389
903 changed files with 113 additions and 32 deletions

View File

@@ -0,0 +1,29 @@
concrete Toy0Fre of Toy0 = {
param
Number = Sg | Pl ;
Gender = Masc | Fem ;
lincat
Spec = {s : Gender => Str ; n : Number} ;
Noun = {s : Number => Str ; g : Gender} ;
NP = {s : Str} ;
lin
SpecNoun spec noun = {s = spec.s ! noun.g ++ noun.s ! spec.n} ;
One = {s = table {Fem => "une" ; _ => "un"} ; n = Sg} ;
Two = {s = \\_ => "deux" ; n = Pl} ;
Felis = mkNoun "chat" Masc ;
Canis = mkNoun "chien" Masc ;
oper
mkNoun : Str -> Gender -> {s : Number => Str ; g : Gender} = \s,g -> {
s = table {
Sg => s ;
Pl => s + "s"
} ;
g = g
} ;
}