From ba78322409e2086a83c03b7b32e84940a24030b0 Mon Sep 17 00:00:00 2001 From: aarne Date: Fri, 15 Aug 2008 12:41:04 +0000 Subject: examples of morphological synthesis/analysis as top-level grammars --- examples/morpho/Fre.gf | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 examples/morpho/Fre.gf (limited to 'examples/morpho/Fre.gf') diff --git a/examples/morpho/Fre.gf b/examples/morpho/Fre.gf new file mode 100644 index 000000000..54ebaf4d0 --- /dev/null +++ b/examples/morpho/Fre.gf @@ -0,0 +1,38 @@ +-- French irregular verbs, built using Eng as template. + +abstract Fre = IrregFreAbs ** { + +flags startcat = Display ; + +cat + Display ; Word ; Form ; + +-- French verb forms have an internal structure. + + TMood ; Number ; Person ; NumPersI ; Gender ; Mood ; + +fun + DAll : Word -> Display ; + DForm : Word -> Form -> Display ; + + VInfin : Form ; + VFin : TMood -> Number -> Person -> Form ; + VImper : NumPersI -> Form ; + VPart : Gender -> Number -> Form ; + VGer : Form ; + + VPres : Mood -> TMood ; + VImperf : Mood -> TMood ; + VPasse, VFut, VCondit : TMood ; + + SgP2, PlP1, PlP2 : NumPersI ; + + Sg, Pl : Number ; + P1, P2, P3 : Person ; + Masc, Fem : Gender ; + Indic, Conjunct : Mood ; + + WVerb : V -> Word ; + WVerb2 : V2 -> Word ; + +} -- cgit v1.2.3