The BNFC package

[Tags: gpl, library, program]

The BNF Converter is a compiler construction tool generating a compiler front-end from a Labelled BNF grammar. It was originally written to generate Haskell, but starting from Version 2.0, it can also be used for generating Java, C++, and C.

Given a Labelled BNF grammar the tool produces: an abstract syntax as a HaskellC++C module or Java directory, a case skeleton for the abstract syntax in the same language, an Alex, JLex, or Flex lexer generator file, a Happy, CUP, or Bison parser generator file, a pretty-printer as a HaskellJavaC++/C module, a Latex file containing a readable specification of the language.

This version only works with Alex version < 3, e.g. alex-2.3.5.


Versions2.4.1.1,,,, 2.5.0,,,,,,, 2.7.1, 2.8
Change logNone available
Dependenciesarray, base (==4.*), directory, mtl, process [details]
Copyright(c) Krasimir Angelov, Bjorn Bringert, Johan Broberg, Paul Callaghan, Markus Forsberg, Ola Frid, Peter Gammie, Patrik Jansson, Kristofer Johannisson, Antti-Juhani Kaijanaho, Ulf Norell, Michael Pellauer and Aarne Ranta 2002 - 2010. Free software under GNU General Public License (GPL).
MaintainerMarkus Forsberg <> Aarne Ranta <>
Home page
UploadedTue Jul 17 16:56:44 UTC 2012 by AndreasAbel
DistributionsDebian:2.8, FreeBSD:2.8, NixOS:2.8
Downloads4935 total (191 in last 30 days)
0 []
StatusDocs not available [build log]
All reported builds failed as of 2015-10-01 [all 2 reports]


Maintainers' corner

For package maintainers and hackage trustees