mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 09:42:50 -06:00
Moved the different versions of the toy0 concrete modules to different subdirectories.
This commit is contained in:
31
examples/regulus/toy0/no-resource/Toy0Ger.gf
Normal file
31
examples/regulus/toy0/no-resource/Toy0Ger.gf
Normal file
@@ -0,0 +1,31 @@
|
||||
--# -path=..
|
||||
concrete Toy0Ger of Toy0 = {
|
||||
|
||||
param
|
||||
Number = Sg | Pl ;
|
||||
Gender = Masc | Fem | Neutr ;
|
||||
|
||||
lincat
|
||||
Spec = {s : Gender => Str ; n : Number} ;
|
||||
Noun = {s : Number => Str ; g : Gender} ;
|
||||
MAIN,NP = {s : Str} ;
|
||||
|
||||
lin
|
||||
Main np = np ;
|
||||
SpecNoun spec noun = {s = spec.s ! noun.g ++ noun.s ! spec.n} ;
|
||||
|
||||
One = {s = table {Fem => "eine" ; _ => "ein"} ; n = Sg} ;
|
||||
Two = {s = \\_ => "zwei" ; n = Pl} ;
|
||||
|
||||
Felis = mkNoun "Katze" "Katzen" Fem ;
|
||||
Canis = mkNoun "Hund" "Hünde" Masc ;
|
||||
|
||||
oper
|
||||
mkNoun : Str -> Str -> Gender -> {s : Number => Str ; g : Gender} = \s,p,g -> {
|
||||
s = table {
|
||||
Sg => s ;
|
||||
Pl => p
|
||||
} ;
|
||||
g = g
|
||||
} ;
|
||||
}
|
||||
Reference in New Issue
Block a user