1
0
forked from GitHub/gf-core

some additions to lib API

This commit is contained in:
aarne
2010-04-10 07:32:11 +00:00
parent 64392c7a50
commit 2f21696919
3 changed files with 13 additions and 4 deletions

View File

@@ -737,7 +737,9 @@ incomplete resource Constructors = open Grammar in {
-- Existentials are a special construction.
mkQCl : IP -> QCl -- 8. what is there --# notminimal
mkQCl : IP -> QCl ; -- 8. what is there --# notminimal
mkQCl : IComp -> NP -> QCl ; -- 9. who is John --# notminimal
} ; --# notminimal
@@ -1399,8 +1401,9 @@ incomplete resource Constructors = open Grammar in {
mkQCl : IP -> NP -> QCl -- who is John --# notminimal
= \a -> QuestIComp (CompIP a) ; --# notminimal
mkQCl : IP -> QCl -- which houses are there --# notminimal
= ExistIP --# notminimal
= ExistIP ; --# notminimal
mkQCl : IComp -> NP -> QCl -- who is John --# notminimal
= \a -> QuestIComp a ; --# notminimal
} ;
mkIP = overload {

View File

@@ -89,4 +89,10 @@ concrete ExtraFin of ExtraFinAbs = CatFin **
IAdvAdv adv = {s = "kuinka" ++ adv.s} ;
ProDrop p = {
s = table {NPCase (Nom | Gen) => [] ; c => p.s ! c} ;
---- drop Gen only works in adjectival position
a = p.a
} ;
}

View File

@@ -1,6 +1,6 @@
abstract ExtraFinAbs = Extra [
GenNP,VPI,ListVPI,BaseVPI,ConsVPI,MkVPI,ComplVPIVV,ConjVPI,
VV,VP,Conj,NP,Quant,IAdv,IComp,ICompAP,IAdvAdv,Adv,AP] ** {
VV,VP,Conj,NP,Quant,IAdv,IComp,ICompAP,IAdvAdv,Adv,AP, Pron, ProDrop] ** {
fun
AdvExistNP : Adv -> NP -> Cl ; -- kuvassa olemme me