2018-11-04: GHC 8.4 compilation.
Version at least 0.13.2.4 of the Haskell Test Framework (HTF) is needed to compile under ghc-8.4. However, this version does not build with the latest QuickCheck. Thus, install HTF separately as follows before following the general instructions below.
cabal install HTF --constraint=QuickCheck==2.11.3
See skogsbaer/HTF#69
The easiest way to run bnfc-system-tests is using Docker, see Install Docker Engine.
- Build the bnfc test image:
../scripts/build-image.sh - Run the test:
docker run -it bnfc/bnfc-test:9.12.2
You may would like to run the test again after making some changes to the source code. This can be done by entering the development environment:
../scripts/devenv.sh
make -C source install # do not forget to rebuild and install the new bnfc
make -C testing test
In this directory (the testing directory), run:
cabal install
bnfc-system-tests
It is important to be in this directory, and further:
-
In your
CLASSPATHhave.and the jars for:- JFLex
- java-cup
- java-cup-runtime
- antlr
- antlr-runtime
-
On Mac OS X, Xcode may come with an old version of GNU bison like 2.3.
brew install bisonto get a newer one (like 3.2) and make sure it is in your PATH. -
Have installed and in the PATH:
jflexalex,happy,hlintocamlc,ocamllex, ``menhir`agda