@hackage BNFC2.8.2
A compiler front-end generator.
Categories
License
GPL-2.0-only
Maintainer
bnfc-dev@googlegroups.com
Links
Versions
Installation
Tested Compilers
Dependencies (2)
Dependents (4)
@hackage/hoq, @hackage/acme-everything, @hackage/cubical, @hackage/harmony
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 can also be used for generating Java, C, C++, C#, Ocaml and XML.
Given a Labelled BNF grammar the tool produces: an abstract syntax as a Haskell, C, C++, C#, Ocaml 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, Bison, or Antlr parser generator file, a pretty-printer as a Haskell, Java, C, C++, C#, or Ocaml module, an XML representation, a Latex file containing a readable specification of the language.