mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 17:08:54 -06:00
Also addressing this https://github.com/GrammaticalFramework/gf-rgl/issues/238 with a README that adds a suggested implementation order.
28 lines
690 B
Plaintext
28 lines
690 B
Plaintext
concrete PhraseTMP of Phrase = CatTMP ** open Prelude, ResTMP in {
|
|
|
|
lin
|
|
PhrUtt pconj utt voc = {s = pconj.s ++ utt.s ++ voc.s} ;
|
|
|
|
UttS s = s ;
|
|
{-
|
|
UttQS qs = qs ;
|
|
UttIAdv iadv = iadv ;
|
|
UttNP np =
|
|
UttIP ip =
|
|
UttImpSg pol imp = { s = pol.s ++ imp.s ! Sg ! pol.p } ;
|
|
UttImpPl pol imp =
|
|
UttImpPol pol imp = {s = pol.s ++ imp.s ! Sg ! pol.p} ;
|
|
UttVP vp = {s = linVP vp} ;
|
|
UttAP ap = { s = ap.s } ;
|
|
UttAdv adv = {s = } ;
|
|
UttCN n = {s = } ;
|
|
UttCard n = {s = } ;
|
|
UttInterj i = i ; -}
|
|
NoPConj = {s = []} ;
|
|
-- PConjConj conj = {s = conj.s1 ++ conj.s2 ! …} ;
|
|
|
|
NoVoc = {s = []} ;
|
|
-- VocNP np = { s = "," ++ np.s ! … } ;
|
|
|
|
}
|