The BNFC-meta package

[Tags:gpl, library]

This package provides a comfortable way of defining quasi-quoters. Specifically, given a quasi-quoted LBNF grammar (as used by the BNF Converter) it generates (using Template Haskell) an LALR parser and pretty pretty printer for the language. The parser is then used to define a quasi-quoter. With a simple pragma, the user can define a universal syntax for anti-quoting. This means that any grammar non-terminal can be replaced by a quoted Haskell expression of the appropriate type. A few examples are included in the source tarball.


Versions 0.1,,,, 0.2,,, 0.2.1, 0.2.2, 0.3,,,,,, 0.4,,,
Dependencies alex-meta (>=, array (==0.3.0.*), base (>=4.2 && <5), happy-meta (>=, haskell-src-meta (>=0.3 && <1.0), template-haskell (>=2.4 && <2.6) [details]
License GPL-2
Author Jonas Duregård
Maintainer Jonas Duregård (
Stability Unknown
Category Development
Uploaded Tue Mar 29 09:32:09 UTC 2011 by JonasDuregard
Distributions NixOS:
Downloads 5726 total (29 in the last 30 days)
0 []
Status Docs not available [build log]
All reported builds failed as of 2016-12-28 [all 6 reports]


  • Language
    • Language.LBNF
      • Language.LBNF.Compiletime
      • Language.LBNF.Grammar
      • Language.LBNF.Runtime


Maintainer's Corner

For package maintainers and hackage trustees