forked from GitHub/gf-core
"Committed_by_peb"
This commit is contained in:
26
grammars/ljung/thesis/FragmentNumber.gf
Normal file
26
grammars/ljung/thesis/FragmentNumber.gf
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
concrete FragmentNumber of FragmentAbstract = open FragmentResource in {
|
||||
|
||||
lincat
|
||||
|
||||
N = { s : Num => Str };
|
||||
V = { s : Num => Str };
|
||||
VP = { s : Num => Str };
|
||||
|
||||
D = { s : Str; n : Num };
|
||||
NP = { s : Str; n : Num };
|
||||
|
||||
lin
|
||||
|
||||
s_p x y = { s = x.s ++ y.s!x.n };
|
||||
np_d x y = { s = x.s ++ y.s!x.n; n = x.n };
|
||||
np_p x = { s = x.s!Pl; n = Pl };
|
||||
vp_t x y = { s = table { z => x.s!z ++ y.s } };
|
||||
d_a = { s = "a"; n = Sg };
|
||||
d_m = { s = "many"; n = Pl };
|
||||
n_c = { s = table { Sg => "lion"; Pl => "lions" } };
|
||||
n_f = { s = table { _ => "fish" } };
|
||||
v_e = { s = table { Sg => "eats" ; Pl => "eat" } };
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user