This document contains the most important parts of the GF Resource Grammar API. It has been machine-generated from the source files; each chapter gives a link -to the relevant source files, which give more information. +to the relevant source files, which give more information. Some of the files have +not yet been prepared so that the machine generated documentation has the right format. +
+
+The second-last chapter gives instructions on how to "browse" the library by
+loading the grammars into the gf command editor.
The last chapter contains a brief example of how application grammars can -import resource modules. It also illustrates a "design pattern" for using -the resource API to build functor-based applications +import resource modules. At the same time, it illustrates a "design pattern" for +using the resource API to build functor-based applications
http://www.cs.chalmers.se/~aarne/GF
-
Syntax Rules
@@ -1527,7 +1532,6 @@ Source: http://www.cs.chalmers.se/~aarne/
-
Structural Words
@@ -2021,7 +2025,6 @@ Source: http://www.cs.chalmers.se/~aar
-
Paradigms for Danish
@@ -2345,7 +2348,6 @@ source http://www.cs.chalmers.se/~aarn
-
Paradigms for English
@@ -2629,7 +2631,6 @@ source http://www.cs.chalmers.se/~aar
-
Paradigms for Finnish
@@ -3043,7 +3044,6 @@ source http://www.cs.chalmers.se/~aar
-
Paradigms for French
@@ -3327,7 +3327,6 @@ source http://www.cs.chalmers.se/~aarn
-
Paradigms for German
@@ -3641,7 +3640,6 @@ source http://www.cs.chalmers.se/~aarn
-
Paradigms for Italian
@@ -3930,7 +3928,6 @@ source http://www.cs.chalmers.se/~aar
-
Paradigms for Norwegian
@@ -4254,7 +4251,6 @@ source http://www.cs.chalmers.se/~a
-
Paradigms for Russian
@@ -4553,7 +4549,6 @@ source http://www.cs.chalmers.se/~aar
-
Paradigms for Spanish
@@ -4847,7 +4842,6 @@ source http://www.cs.chalmers.se/~aar
-
Paradigms for Swedish
@@ -5146,8 +5140,37 @@ source http://www.cs.chalmers.se/~aar
-
+Browsing the libraries with GF commands
+
+All of the following assume
+
+
+ cd $GF_LIB_PATH
+
+
+To try out inflection paradigms:
+
+
+ > i -path=alltenses:prelude -retain alltenses/ParadigmsGer.gfr
+ > cc mkN "Farbe"
+
+
+To look for a syntax tree in the overload API by parsing:
+
+
+ > i -path=alltenses:prelude alltenses/OverLangEng.gfc
+ > p -cat=S -overload "this grammar is too big"
+
+
+To view linearizations in all languages by parsing from English:
+
+
+ > i alltenses/langs.gfcm
+ > p -cat=S -lang=LangEng "this grammar is too big" | tb
+
+
+
An Example of Usage
The standard way of building an application has the following modules.
@@ -5211,6 +5234,6 @@ For each language, an instantiation of the functor:
-
+