This commit is contained in:
aarne
2004-11-08 13:57:50 +00:00
parent 1a8c6fbbb8
commit c845ef57bb

View File

@@ -1,10 +1,10 @@
To make and install GF2 (Version 2-beta, 2/4/2004).
To make and install GF2 (Version 2.1, 8/11/2004).
1. Unpack GF2 and go to the source directory (the place where this
INSTALL file is - so you have probably done this already!)
tar xvfz gf2-beta.tgz
cd GF2/src
tar xvfz GF-2.1.tgz
cd GF-2.1/src
2. Make sure you have GHC (Glasgow Haskell Compiler), version 5.02 or later.
In Windows, you also need Cygwin.
@@ -33,14 +33,22 @@ To make and install GF2 (Version 2-beta, 2/4/2004).
make unix -- for Linux, Solaris, Mac OSX
make windows -- for MS Windows
The binary is sent to the file GF2/bin/gf
The binary is sent to the file GF-2.1/bin/gf
6. For a quick test: start GF2, load a grammar and parse a string:
6. For a quick test: load a grammar package from
cd ../grammars/basic
http://www.cs.chalmers.se/~aarne/GF/download/gf-lib.tgz
Open the package under GF-2.0
tar xvfz gf-lib.tgz
Then start gf, load a grammar and parse a string:
cd ../lib/basic
../../bin/gf English.gf
-- when GF2 has started and shows the prompt >:
-- when gf has started and shows the prompt >:
> p "every number is even or odd"
-- this is the response from GF2:
PredA1 (Every Number) (DisjA1 Even Odd)
@@ -53,11 +61,11 @@ To make and install GF2 (Version 2-beta, 2/4/2004).
the value of GFHOME to the location of your GF2/bin directory. Test the
GUI with some grammars:
cd ../grammars/letter
cd ../lib/letter
../../bin/gf <mkLetter.gfs
../../bin/jgf Letter.gfcm
When the window opens, push the Random button.
Author: Aarne Ranta, 2/4/2004
Author: Aarne Ranta, 8/11/2004