1
0
forked from GitHub/gf-core

further work on tutorial

This commit is contained in:
aarne
2007-05-30 19:29:24 +00:00
parent 3447b34e09
commit 1c59cd63f9
9 changed files with 1799 additions and 1852 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

+6
View File
@@ -0,0 +1,6 @@
html:
txt2tags -thtml --toc gf-tutorial2.txt
tex:
txt2tags -ttex --toc gf-tutorial2.txt
pdflatex gf-tutorial2.tex
pdflatex gf-tutorial2.tex
File diff suppressed because it is too large Load Diff
+1050 -1075
View File
File diff suppressed because it is too large Load Diff
+18 -14
View File
@@ -1,4 +1,4 @@
concrete CatFin of Cat = CommonX ** open ResFin, Prelude in { concrete CatFin of Cat = CommonX - [Adv] ** open ResFin, Prelude in {
flags optimize=all_subs ; flags optimize=all_subs ;
@@ -70,24 +70,28 @@ concrete CatFin of Cat = CommonX ** open ResFin, Prelude in {
Conj = {s : Str ; n : Number} ; Conj = {s : Str ; n : Number} ;
DConj = {s1,s2 : Str ; n : Number} ; DConj = {s1,s2 : Str ; n : Number} ;
Subj = {s : Str} ; Subj = {s : Str} ;
Prep = Compl ;
-- Open lexical classes, e.g. Lexicon -- Open lexical classes, e.g. Lexicon
V, VS, VQ = Verb1 ; -- = {s : VForm => Str ; sc : Case} ; V = ResFin.V ;
V2, VA = Verb1 ** {c2 : Compl} ; V2 = ResFin.V2 ;
V2A = Verb1 ** {c2, c3 : Compl} ; VA = ResFin.VA ;
VV = Verb1 ; ---- infinitive form VS = ResFin.VS ;
V3 = Verb1 ** {c2, c3 : Compl} ; VQ = ResFin.VQ ;
V2A = ResFin.V2A ;
VV = ResFin.VV ;
V3 = ResFin.V3 ;
A = {s : Degree => AForm => Str} ; A = ResFin.A ;
A2 = {s : Degree => AForm => Str ; c2 : Compl} ; A2 = ResFin.A2 ;
N = {s : NForm => Str} ; N = ResFin.N ;
N2 = {s : NForm => Str} ** {c2 : Compl} ; N2 = ResFin.N2 ;
N3 = {s : NForm => Str} ** {c2,c3 : Compl} ; N3 = ResFin.N3 ;
PN = {s : Case => Str} ; PN = ResFin.PN ;
Adv = ResFin.Adv ;
Prep = ResFin.Prep ;
oper Verb1 = {s : VForm => Str ; sc : NPForm} ;
} }
+1 -1
View File
@@ -11,7 +11,7 @@ concrete GrammarFin of Grammar =
RelativeFin, RelativeFin,
ConjunctionFin, ConjunctionFin,
PhraseFin, PhraseFin,
TextX, TextX - [Adv],
IdiomFin, IdiomFin,
StructuralFin StructuralFin
** { ** {
+1 -2
View File
@@ -25,8 +25,7 @@
resource ParadigmsFin = open resource ParadigmsFin = open
(Predef=Predef), (Predef=Predef),
Prelude, Prelude,
MorphoFin, MorphoFin
CatFin
in { in {
flags optimize=noexpand ; flags optimize=noexpand ;
+22
View File
@@ -569,4 +569,26 @@ oper
a = agrP3 Sg ; -- does not matter (--- at least in Slash) a = agrP3 Sg ; -- does not matter (--- at least in Slash)
isPron = False -- has no special accusative isPron = False -- has no special accusative
} ; } ;
-- To export
N : Type = {s : NForm => Str} ;
N2 = {s : NForm => Str} ** {c2 : Compl} ;
N3 = {s : NForm => Str} ** {c2,c3 : Compl} ;
PN = {s : Case => Str} ;
A = {s : Degree => AForm => Str} ;
A2 = {s : Degree => AForm => Str ; c2 : Compl} ;
V, VS, VQ = Verb1 ; -- = {s : VForm => Str ; sc : Case} ;
V2, VA = Verb1 ** {c2 : Compl} ;
V2A = Verb1 ** {c2, c3 : Compl} ;
VV = Verb1 ; ---- infinitive form
V3 = Verb1 ** {c2, c3 : Compl} ;
Verb1 = {s : VForm => Str ; sc : NPForm} ;
Prep = Compl ;
Adv = {s : Str} ;
} }