The BNFC-meta package
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.
Properties
| 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 |
|---|---|
| Dependencies | alex-meta (≥0.2.0.1), array (0.3.0.*), base (≥4.2 & <5), happy-meta (≥0.2.0.2), haskell-src-meta (≥0.3 & <1.0), template-haskell (≥2.4 & <2.6) |
| License | GPL-2 |
| Author | Jonas Duregård |
| Maintainer | Jonas Duregård (jonas.duregard@chalmers.se) |
| Category | Development |
| Upload date | Tue May 10 20:31:42 UTC 2011 |
| Uploaded by | JonasDuregard |
| Built on | ghc-7.0 |
| Distributions | NixOS: 0.4.0.1 |
Modules
Downloads
- BNFC-meta-0.2.1.tar.gz (Cabal source package)
- package description (included in the package)