[ANN] BNFC 2.9.5 released

Andreas Abel abela at chalmers.se
Wed Jul 26 21:34:26 UTC 2023


BNFC 2.9.5 is available at

   - https://hackage.haskell.org/package/BNFC-2.9.5

   - https://github.com/BNFC/bnfc/releases/tag/v2.9.5
     (binaries and changelog)

Feedback welcome, problems at https://github.com/BNFC/bnfc/issues .

The BNF Converter (bnfc) is a wizard generating syntax trees, parser and 
printer from a Labelled BNF (LBNF) grammar.  It is currently able to 
generate Haskell, Agda, C, C++, Java, and OCaml representations.

Supported parser generators: Happy, ocamlyacc, Menhir, ANTLR, CUP, Bison.

More information: http://bnfc.digitalgrammars.com

Changes in 2.9.5:

* C/C++/Java: escape newline etc. when printing `String` and `Char` 
literals [[#449](https://github.com/BNFC/bnfc/issues/449)]
* Java/ANTLR: unescape `String` and `Char` literals in parser (needs 
Java ≥ 15) [[#451](https://github.com/BNFC/bnfc/issues/451)]
* Java/ANTLR: fix case problem with language names like `C` 
[[#455](https://github.com/BNFC/bnfc/issues/455)]
* Java with line numbers: compatibility with `jflex` ≥ 1.8 
[[#453](https://github.com/BNFC/bnfc/issues/453)]

* Haskell/GADT: generated `ComposOp.hs` no longer needs `mtl` library 
[[#438](https://github.com/BNFC/bnfc/pull/438)]

* Ocaml: fixed a crash in printer with unbalanced `}` 
[[#439](https://github.com/BNFC/bnfc/issues/439)]
* Ocaml: lex escape sequences in `Char` 
[[#452](https://github.com/BNFC/bnfc/issues/452)]
* Ocaml: removed superfluous `let rec` in the printers for token categories


Cheers,
Andreas

-- 
Andreas Abel  <><      Du bist der geliebte Mensch.

Department of Computer Science and Engineering
Chalmers and Gothenburg University, Sweden

andreas.abel at gu.se
http://www.cse.chalmers.se/~abela/



More information about the Libraries mailing list