diff --git a/doc/gf-quickstart.html b/doc/gf-quickstart.html index 8d6aff5cb..45b1bd198 100644 --- a/doc/gf-quickstart.html +++ b/doc/gf-quickstart.html @@ -21,14 +21,14 @@ December 2010 for GF 3.2 -This Quick Start shows two examples of how GF can be used. +This Quick Start shows a few examples of how GF can be used. We assume that you have downloaded and installed GF, so that the command gf works for you. See download and install instructions here. -
- gf FoodIta.gf FoodEng.gf + $ gf FoodIta.gf FoodEng.gf
- parse "this cheese is very very Italian" | linearize -treebank + parse "this cheese is very very Italian" | linearize+Notice that the parser accept the tabulator for word completion.
generate_random | linearize-
+ help ++
+ import alltenses/LangEng.gfo alltenses/LangGer.gfo + + parse -lang=Eng "I love you" | linearize -treebank ++The resource grammars are found relative to the value of GF_LIB_PATH, which +you may have to set; see here for instructions. + + + +
Bread : Kind ; -- in Food.gf @@ -86,13 +109,32 @@ the two grammars above, do gf -make FoodIta.gf FoodEng.gf wrote Food.pgf-You can use this in Haskell and Java programs, and also on web services, as shown in -here. -To build your own web application, consult the +You can use this in Haskell and Java programs, and also on web services, such as +
+ $ pgh-http
+ Starting HTTP server, open http://localhost:41296/ in your web browser
+
+ Options {documentRoot = "/home/aarne/.cabal/share/gf-server-1.0/www", port = 41296}
+
+which resides next to your gf program. You can view it locally by pointing your
+browser to the URL shown. You can add your own .pgf grammar to the service by
+copying it over to the documentRoot directory. Just push "reload" in
+your browser after each such update.
+
++ +To build more customized web application, consult the developer wiki. -