BNFC-meta: Deriving Quasi-Quoters from BNF Grammars

[ development, gpl, language, library, parsing, text ] [ Propose Tags ] [ Report a vulnerability ]

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.

Modules

[Last Documentation]

  • Language
    • Language.LBNF

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.2, 0.2.0.1, 0.2.0.2, 0.2.1, 0.2.2, 0.3, 0.3.0.1, 0.3.0.2, 0.3.0.3, 0.3.0.4, 0.3.0.5, 0.4, 0.4.0.1, 0.4.0.2, 0.4.0.3, 0.5, 0.6, 0.6.1
Dependencies alex-meta (<0.3), array (>=0.3.0 && <0.3.1), base (>=4.2 && <5), happy-meta (<0.3), haskell-src-meta (>=0.1.1 && <0.4), template-haskell (>=2.4 && <2.5), th-lift (>=0.5 && <0.6) [details]
License GPL-2.0-only
Author Jonas Duregård
Maintainer Jonas Duregård (jonas.duregard@chalmers.se)
Category Language
Uploaded by JonasDuregard at 2011-03-04T15:47:30Z
Distributions LTSHaskell:0.6.1, NixOS:0.6.1, Stackage:0.6.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 22524 total (92 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-28 [all 6 reports]