forked from GitHub/comp-syntax-gu-mlt
cleaned up in lab2 grammars ; added myproject/ from the lecture
This commit is contained in:
23
lab2/grammar/myproject/MicroResSwe.gf
Normal file
23
lab2/grammar/myproject/MicroResSwe.gf
Normal file
@@ -0,0 +1,23 @@
|
||||
resource MicroResSwe = {
|
||||
|
||||
param
|
||||
Number = Sg | Pl ;
|
||||
Species = Indef | Def ;
|
||||
Gender = Utr | Neutr ;
|
||||
|
||||
oper
|
||||
N = {s : Number => Species => Str ; g : Gender} ;
|
||||
|
||||
worstN : Str -> Str -> Str -> Str -> Gender -> N
|
||||
= \man,mannen,män,männen,gen -> {
|
||||
s = table {
|
||||
Sg => table {Indef => man ; Def => mannen} ;
|
||||
Pl => table {Indef => män ; Def => männen}
|
||||
} ;
|
||||
g = gen
|
||||
} ;
|
||||
|
||||
decl2 : Str -> N
|
||||
= \bil -> worstN bil (bil + "en") (bil + "ar") (bil + "arna") Utr ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user