(May) WIP relative clauses

This commit is contained in:
Inari Listenmaa
2020-08-18 21:36:04 +02:00
parent 53eb8ab9df
commit 095f11abb7
5 changed files with 39 additions and 22 deletions
+6 -4
View File
@@ -38,8 +38,9 @@ concrete NounMay of Noun = CatMay ** open ResMay, Prelude in {
--AdvNP,ExtAdvNP = \np,adv -> np ** {} ;
-- : NP -> RS -> NP ; -- Paris, which is here
-- RelNP np rs = np ** {
-- } ;
RelNP np rs = np ** {
s = np.s ++ rs.subj ++ rs.pred ! np.p
} ;
-- Determiners can form noun phrases directly.
@@ -144,8 +145,9 @@ concrete NounMay of Noun = CatMay ** open ResMay, Prelude in {
-- } ;
-- : CN -> RS -> CN ;
-- RelCN cn rs = cn ** {
-- } ;
RelCN cn rs = cn ** {
s = \\nf => cn.s ! nf ++ rs.subj ++ rs.pred ! P3
} ;
{-
-- : CN -> Adv -> CN ;