BNFC-meta: Deriving Quasi-Quoters from BNF Grammars
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.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 |
---|---|
Dependencies | alex-meta (>=0.3.0.3 && <0.4), array (==0.4.*), base (>=4.2 && <5), happy-meta (>=0.2.0.4 && <0.3), haskell-src-meta (>=0.5 && <1.0), syb (>=0.2 && <1.0), template-haskell (>=2.4 && <2.8) [details] |
License | GPL-2.0-only |
Author | Jonas Duregård |
Maintainer | Jonas Duregård (jonas.duregard@chalmers.se) |
Category | Development |
Uploaded | by JonasDuregard at Tue Jun 12 11:23:07 UTC 2012 |
Distributions | NixOS:0.6 |
Downloads | 9360 total (69 in the last 30 days) |
Rating | (no votes yet) [estimated by rule of succession] |
Your Rating | |
Status | Docs not available [build log] All reported builds failed as of 2016-12-24 [all 7 reports] Hackage Matrix CI |
Modules
- Language
- Language.LBNF
- Language.LBNF.Compiletime
- Language.LBNF.Grammar
- Language.LBNF.Runtime
- Language.LBNF
Downloads
- BNFC-meta-0.3.0.3.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)