mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 13:09:33 -06:00
74 lines
1.3 KiB
CFEngine3
74 lines
1.3 KiB
CFEngine3
--- just one tense considered; no agreement forced
|
|
|
|
S ::= NP VP ;
|
|
S ::= NP Mod VP ;
|
|
S ::= Adv "," S ;
|
|
|
|
-- sentences used as subjects and objects
|
|
|
|
NP ::= SC ;
|
|
|
|
SC ::= "that" S ;
|
|
SC ::= "to" VP ;
|
|
SC ::= QS ;
|
|
|
|
-- this is not needed in gf
|
|
SC ::= "whether" S | "if" S ;
|
|
|
|
-- existentials
|
|
|
|
S ::= "there" Cop NP ;
|
|
QS ::= Cop "there" NP ;
|
|
|
|
-- slash category instead of gaps
|
|
|
|
Slash ::= NP OptAdV V2 ;
|
|
Slash ::= NP OptAdV VV "to" V2 ;
|
|
Slash ::= NP Cop OptAdV A2 Prep ;
|
|
Slash ::= S Prep ;
|
|
Slash ::= Slash Adv ; -- who does my son love here
|
|
|
|
-- questions
|
|
|
|
QS ::= Mod NP VP ;
|
|
|
|
-- this will be eliminated via richer lintypes
|
|
QS ::= Cop NP Comp ;
|
|
|
|
IntVP. QS ::= IP VP ;
|
|
QS ::= IP Mod VP ;
|
|
IntSlash. QS ::= IP Mod QSlash ;
|
|
|
|
QSlash ::= Slash | QS Prep ;
|
|
|
|
-- general: QuestAdv : IAdv -> Cl -> QCl ;
|
|
QS ::= IAdv Mod NP VP ;
|
|
QS ::= IAdv Cop NP ;
|
|
|
|
IAdv ::= Prep IP ;
|
|
|
|
-- relatives
|
|
|
|
RelVP. RS ::= RP VP ;
|
|
RS ::= RP Mod VP ;
|
|
RelSlash. RS ::= RP Slash ;
|
|
RS ::= Slash ;
|
|
|
|
-- CLE syntax of relatives
|
|
NP ::= NP RS ;
|
|
|
|
FunIP. IP ::= NP Prep IP ; --N2
|
|
|
|
IP ::= IDet OptNum CN ;
|
|
IP ::= IDet OptNum_Pl CN_Pl ;
|
|
IP ::= IP PP ;
|
|
|
|
FunRP. RP ::= NP Prep RP ; -- ?
|
|
RP ::= "whose" OptNum CN ;
|
|
RP ::= "whose" OptNum_Pl CN_Pl ;
|
|
|
|
-- imperative
|
|
|
|
PosImpVP. Imp ::= VP ;
|
|
NegImpVP. Imp ::= "don't" VP ;
|