mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-17 07:02:51 -06:00
first compilable LangDut
This commit is contained in:
52
lib/src/dutch/RelativeDut.gf
Normal file
52
lib/src/dutch/RelativeDut.gf
Normal file
@@ -0,0 +1,52 @@
|
||||
concrete RelativeDut of Relative = CatDut ** open ResDut in
|
||||
{
|
||||
--{
|
||||
--
|
||||
-- flags optimize=all_subs ;
|
||||
--
|
||||
-- lin
|
||||
--
|
||||
-- RelCl cl = {
|
||||
-- s = \\m,t,a,b,_ => "derart" ++ conjThat ++ cl.s ! m ! t ! a ! b ! Sub ;
|
||||
-- c = Nom
|
||||
-- } ;
|
||||
--
|
||||
-- RelVP rp vp = {
|
||||
-- s = \\m,t,ant,b,gn =>
|
||||
-- let
|
||||
-- agr = case rp.a of {
|
||||
-- RNoAg => agrP3 (numGenNum gn) ;
|
||||
-- RAg a => a ** {g = Neutr}
|
||||
-- } ;
|
||||
-- cl = mkClause (rp.s ! gn ! Nom) agr vp
|
||||
-- in
|
||||
-- cl.s ! m ! t ! ant ! b ! Sub ;
|
||||
-- c = Nom
|
||||
-- } ;
|
||||
--
|
||||
-- RelSlash rp slash = {
|
||||
-- s = \\m,t,a,p,gn =>
|
||||
-- appPrep slash.c2 (rp.s ! gn) ++ slash.s ! m ! t ! a ! p ! Sub ;
|
||||
-- c = slash.c2.c
|
||||
-- } ;
|
||||
--
|
||||
-- FunRP p np rp = {
|
||||
-- s = \\gn,c => np.s ! c ++ appPrep p (rp.s ! gn) ;
|
||||
-- a = RAg {n = np.a.n ; p = np.a.p}
|
||||
-- } ;
|
||||
--
|
||||
-- IdRP = {s = relPron ; a = RNoAg} ;
|
||||
--
|
||||
-- oper
|
||||
-- relPron : GenNum => Case => Str = \\gn,c =>
|
||||
-- case <gn,c> of {
|
||||
-- <GSg Fem,Gen> => "deren" ;
|
||||
-- <GSg g,Gen> => "dessen" ;
|
||||
-- <GPl,Dat> => "denen" ;
|
||||
-- <GPl,Gen> => "deren" ;
|
||||
-- _ => artDef ! gn ! c
|
||||
-- } ;
|
||||
--
|
||||
--}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user