bits of sentence syntax in Slovenian

This commit is contained in:
krasimir
2016-05-02 20:35:38 +00:00
parent 9fe7d9b697
commit 11c5687e98
4 changed files with 28 additions and 3 deletions

View File

@@ -1,6 +1,9 @@
concrete CatSlv of Cat = CommonX ** open ResSlv in {
concrete CatSlv of Cat = CommonX ** open ResSlv, (P=ParamX) in {
lincat
-- Sentence
Cl = {s : P.Tense => P.Anteriority => P.Polarity => Str} ;
-- Verb
VP = ResSlv.VP ;

View File

@@ -6,8 +6,9 @@ concrete GrammarSlv of Grammar =
AdjectiveSlv,
{- AdverbEng,
NumeralEng,
SentenceEng,
QuestionEng,
-}
SentenceSlv,
{- QuestionEng,
RelativeEng,
ConjunctionEng,-}
PhraseSlv,

View File

@@ -38,4 +38,14 @@ oper
}
} ;
Clause : Type = {
s : Tense => Anteriority => Polarity => Str
} ;
mkClause : Str -> Agr -> VP -> Clause =
\subj,agr,vp -> {
s = \\t,a,p =>
subj ++ vp.s ! t ! agr
} ;
}

View File

@@ -0,0 +1,11 @@
concrete SentenceSlv of Sentence = CatSlv ** open Prelude, ResSlv in {
lin
PredVP np vp = mkClause (np.s ! Nom) np.a vp ;
UseCl t p cl = {
s = t.s ++ p.s ++ cl.s ! t.t ! t.a ! p.p
} ;
}