bnfc - Compiler front-end generator based on Labelled BNF

Property Value
Distribution Debian 8 (Jessie)
Repository Debian Main i386
Package name bnfc
Package version
Package release 2
Package architecture i386
Package type deb
Installed size 3.21 KB
Download size 870.60 KB
Official Mirror
The BNF Converter is a compiler construction tool that generates a
compiler front-end and a readable syntax description document from a
Labelled BNF grammar. It was originally written to generate Haskell,
but it can now also be used for generating Java, C++, and C.
To process Haskell output, you need the Glorious Glasgow Haskell
Compiler (virtual package ghc), the Happy parser generator (package
happy) and the Alex scanner generator (package alex).
To process Java output, you need a Java compiler and virtual machine,
the CUP parser generator (package cup) and the JLex scanner generator
(package jlex).
To process C or C++ output, you need a C or C++ compiler,
respectively, the Bison parser generator (package bison) and the flex
scanner generator (package flex).
To process the generated documents, you need LaTeX (packages
tetex-base, tetex-bin, etc.).


Package Version Architecture Repository
bnfc_2.6.0.3-2_amd64.deb amd64 Debian Main
bnfc - - -


Name Value
libc6 >= 2.11
libffi6 >= 3.0.4
libgmp10 -


Type URL
Binary Package bnfc_2.6.0.3-2_i386.deb
Source Package bnfc

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install bnfc deb package:
    # sudo apt-get install bnfc




2013-05-24 - Joachim Breitner <>
bnfc ( unstable; urgency=low
* Change Homepage field (Closes: #677988)
* Enable compat level 9
* Bump standards version to 3.9.4
2013-05-11 - Joachim Breitner <>
bnfc ( experimental; urgency=low
* New upstream release
* Adopt package by the Debian Haskell Group (Closes: 665783)
2012-04-01 - Antti-Juhani Kaijanaho <>
bnfc ( unstable; urgency=low
* debian/rules: Compile Setup.lhs at configure time, as some architectures
apparently lack runghc.
2012-04-01 - Antti-Juhani Kaijanaho <>
bnfc ( unstable; urgency=low
* New upstream release.
* Converted to source format 3.0 (quilt).
* Fixed a build failure with recent GHC and Alex.  New patches:
- remove-haskell98.patch
- use-alex-3.patch
Closes: #665063 (FTBFS: Could not find module `Char')
Reported by Lucas Nussbaum <>.
* Now generates code that compiles with recent GHC and Alex.  New patches:
- generate-alex3.patch
- dont-generate-unqualified.patch
* Removed Homepage, as it seems to have disappeared.
* Rewrote the packaging to use dh instead of my aging personal helper script.
* Rewrote debian/copyright following copyright-format/1.0.
* Build-Depends:
- Added ghc as an alternative to ghc6.
- Added libghc-mtl-dev|libghc6-mtl-dev as it was split off from base.
- Restricted alex to at least version 3.
- Added debhelper.
* Standards-Version 3.9.3.
2008-04-11 - Barry deFreese <>
bnfc (2.2-3.1) unstable; urgency=low
* Non-maintainer upload.
* Convert copyright to UTF-8.
* Update FSF address.
* Move Homepage from package description to source header.
* Make clean not ignore errors.
* Replace tabs with spaces in source files. (Closes: #460386)
2006-10-17 - Antti-Juhani Kaijanaho <>
bnfc (2.2-3) unstable; urgency=medium
* The "GHC 6.6 broke my toy" release.
* Backport GHC 6.6 compilation fix from upstream CVS:
- formats/cpp/RegToFlex.hs, formats/haskell2/CFtoAlex.hs,
formats/haskell2/CFtoAlex2.hs, GetCF.hs:
remove paragraph character (ยง) from lexer specs
- CF.hs: remove latin-1 whitespace character
Closes: #393590 (FTBFS with ghc6 6.6)
Reported by Arjan Oosting <>.
* Standards-Version bumped to 3.7.2, no changes required.
2005-09-19 - Antti-Juhani Kaijanaho <>
bnfc (2.2-2) unstable; urgency=low
* The C++ transition made this package uninstallable.  Rebuild with new
ghc to fix this (Build-Depends adjusted accordingly).
* Standards-Version bumped to 3.6.2, no changes required.
2005-04-10 - Antti-Juhani Kaijanaho <>
bnfc (2.2-1) unstable; urgency=low
* New upstream release
- incorporates our change
Makefile (GHC_OPTS): Remove -Wall to avoid clutter at build time
* debian/copyright: Update.
* Makefile: clean should remove formats/{profile,xml}/*.{hi,o}
2004-05-02 - Antti-Juhani Kaijanaho <>
bnfc (2.1.2-2) unstable; urgency=low
* Fix the
formats/haskell/CFtoAlex2.hs: Do not import Alex in generated code
change from our diff (apparently our and upstream's patches
conflicted in a way I did not see before).
2004-04-14 - Antti-Juhani Kaijanaho <>
bnfc (2.1.2-1) unstable; urgency=low
* New upstream release
- incorporates our change
formats/haskell/CFtoAlex2.hs: Do not import Alex in generated code
* debian/control [Build-Depends]: Add a version clause for ghc6, to
make sure that dynamically linked executables are produced on all
arches.  Thanks to Ian Lynagh.
Closes: #241591 ((hppa/unstable): FTBFS: ldd errors)
* debian/rules: lbnf_spec.tex has been replaced by LBNF-report.tex

See Also

Package Description
boa-constructor_0.6.1-13_all.deb RAD tool for Python and wxWindows application
boats_201307-1_i386.deb race scenario drawing tool
bochs-doc_2.6-2_all.deb Bochs upstream documentation
bochs-sdl_2.6-2_i386.deb SDL plugin for Bochs
bochs-term_2.6-2_i386.deb Terminal (ncurses-based) plugin for Bochs
bochs-wx_2.6-2_i386.deb WxWindows plugin for Bochs
bochs-x_2.6-2_i386.deb X11 plugin for Bochs
bochs_2.6-2_i386.deb IA-32 PC emulator
bochsbios_2.6-2_all.deb BIOS for the Bochs emulator
bodr_10-1_all.deb Blue Obelisk Data Repository
bogl-bterm_0.1.18-9_i386.deb Ben's Own Graphics Library - graphical terminal
bognor-regis_0.6.12+git20101007.02c25268-9_i386.deb Media daemon and play queue manager
bogofilter-bdb_1.2.4+dfsg1-3+deb8u1_i386.deb fast Bayesian spam filter (Berkeley DB)
bogofilter-common_1.2.4+dfsg1-3+deb8u1_all.deb fast Bayesian spam filter (common files)
bogofilter-sqlite_1.2.4+dfsg1-3+deb8u1_i386.deb fast Bayesian spam filter (sqlite)