mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
further work on tutorial
This commit is contained in:
BIN
doc/gf-logo.png
Normal file
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
BIN
doc/quick-editor.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 94 KiB |
6
doc/tutorial/Makefile
Normal file
6
doc/tutorial/Makefile
Normal 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
@@ -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} ;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ concrete GrammarFin of Grammar =
|
|||||||
RelativeFin,
|
RelativeFin,
|
||||||
ConjunctionFin,
|
ConjunctionFin,
|
||||||
PhraseFin,
|
PhraseFin,
|
||||||
TextX,
|
TextX - [Adv],
|
||||||
IdiomFin,
|
IdiomFin,
|
||||||
StructuralFin
|
StructuralFin
|
||||||
** {
|
** {
|
||||||
|
|||||||
@@ -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 ;
|
||||||
|
|||||||
@@ -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} ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user