mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-18 15:42:50 -06:00
INSTALL
This commit is contained in:
26
src/INSTALL
26
src/INSTALL
@@ -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
|
1. Unpack GF2 and go to the source directory (the place where this
|
||||||
INSTALL file is - so you have probably done this already!)
|
INSTALL file is - so you have probably done this already!)
|
||||||
|
|
||||||
tar xvfz gf2-beta.tgz
|
tar xvfz GF-2.1.tgz
|
||||||
cd GF2/src
|
cd GF-2.1/src
|
||||||
|
|
||||||
2. Make sure you have GHC (Glasgow Haskell Compiler), version 5.02 or later.
|
2. Make sure you have GHC (Glasgow Haskell Compiler), version 5.02 or later.
|
||||||
In Windows, you also need Cygwin.
|
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 unix -- for Linux, Solaris, Mac OSX
|
||||||
make windows -- for MS Windows
|
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
|
../../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"
|
> p "every number is even or odd"
|
||||||
-- this is the response from GF2:
|
-- this is the response from GF2:
|
||||||
PredA1 (Every Number) (DisjA1 Even Odd)
|
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
|
the value of GFHOME to the location of your GF2/bin directory. Test the
|
||||||
GUI with some grammars:
|
GUI with some grammars:
|
||||||
|
|
||||||
cd ../grammars/letter
|
cd ../lib/letter
|
||||||
../../bin/gf <mkLetter.gfs
|
../../bin/gf <mkLetter.gfs
|
||||||
../../bin/jgf Letter.gfcm
|
../../bin/jgf Letter.gfcm
|
||||||
|
|
||||||
When the window opens, push the Random button.
|
When the window opens, push the Random button.
|
||||||
|
|
||||||
Author: Aarne Ranta, 2/4/2004
|
Author: Aarne Ranta, 8/11/2004
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user