From 9e341cc7f9020eda842c8ad0f1f57bf6326eb89d Mon Sep 17 00:00:00 2001 From: aarne Date: Thu, 18 Dec 2008 14:21:28 +0000 Subject: Hindi and Thai compile in 1.5 --- next-lib/src/thai/RelativeTha.gf | 48 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 next-lib/src/thai/RelativeTha.gf (limited to 'next-lib/src/thai/RelativeTha.gf') diff --git a/next-lib/src/thai/RelativeTha.gf b/next-lib/src/thai/RelativeTha.gf new file mode 100644 index 000000000..1dadd0ccf --- /dev/null +++ b/next-lib/src/thai/RelativeTha.gf @@ -0,0 +1,48 @@ +--concrete RelativeTha of Relative = CatTha ** open ResTha in { +-- +-- flags optimize=all_subs ; +-- +-- lin +-- +-- RelCl cl = { +-- s = \\t,a,p,_ => "such" ++ "that" ++ cl.s ! t ! a ! p ! ODir ; +-- c = Nom +-- } ; +-- +-- RelVP rp vp = { +-- s = \\t,ant,b,ag => +-- let +-- agr = case rp.a of { +-- RNoAg => ag ; +-- RAg a => a +-- } ; +-- cl = mkClause (rp.s ! RC Nom) agr vp +-- in +-- cl.s ! t ! ant ! b ! ODir ; +-- c = Nom +-- } ; +-- +---- Pied piping: "at which we are looking". Stranding and empty +---- relative are defined in $ExtraTha.gf$ ("that we are looking at", +---- "we are looking at"). +-- +-- RelSlash rp slash = { +-- s = \\t,a,p,_ => slash.c2 ++ rp.s ! RPrep ++ slash.s ! t ! a ! p ! ODir ; +-- c = Acc +-- } ; +-- +-- FunRP p np rp = { +-- s = \\c => np.s ! Acc ++ p.s ++ rp.s ! RPrep ; +-- a = RAg np.a +-- } ; +-- +-- IdRP = { +-- s = table { +-- RC Gen => "whose" ; +-- RC _ => "that" ; +-- RPrep => "which" +-- } ; +-- a = RNoAg +-- } ; +-- +--} -- cgit v1.2.3