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
doc/gf-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
doc/quick-editor.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

6
doc/tutorial/Makefile Normal file
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

File diff suppressed because it is too large Load Diff

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 ;
@@ -70,24 +70,28 @@ concrete CatFin of Cat = CommonX ** open ResFin, Prelude in {
Conj = {s : Str ; n : Number} ;
DConj = {s1,s2 : Str ; n : Number} ;
Subj = {s : Str} ;
Prep = Compl ;
-- Open lexical classes, e.g. Lexicon
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} ;
V = ResFin.V ;
V2 = ResFin.V2 ;
VA = ResFin.VA ;
VS = ResFin.VS ;
VQ = ResFin.VQ ;
V2A = ResFin.V2A ;
VV = ResFin.VV ;
V3 = ResFin.V3 ;
A = {s : Degree => AForm => Str} ;
A2 = {s : Degree => AForm => Str ; c2 : Compl} ;
A = ResFin.A ;
A2 = ResFin.A2 ;
N = {s : NForm => Str} ;
N2 = {s : NForm => Str} ** {c2 : Compl} ;
N3 = {s : NForm => Str} ** {c2,c3 : Compl} ;
PN = {s : Case => Str} ;
N = ResFin.N ;
N2 = ResFin.N2 ;
N3 = ResFin.N3 ;
PN = ResFin.PN ;
Adv = ResFin.Adv ;
Prep = ResFin.Prep ;
oper Verb1 = {s : VForm => Str ; sc : NPForm} ;
}

View File

@@ -11,7 +11,7 @@ concrete GrammarFin of Grammar =
RelativeFin,
ConjunctionFin,
PhraseFin,
TextX,
TextX - [Adv],
IdiomFin,
StructuralFin
** {

View File

@@ -25,8 +25,7 @@
resource ParadigmsFin = open
(Predef=Predef),
Prelude,
MorphoFin,
CatFin
MorphoFin
in {
flags optimize=noexpand ;

View File

@@ -569,4 +569,26 @@ oper
a = agrP3 Sg ; -- does not matter (--- at least in Slash)
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} ;
}