CTAN Comprehensive TeX Archive Network

CTAN update: simplebnf

Date: November 25, 2023 6:25:52 PM CET
Jay Lee submitted an update to the simplebnf package. Version: 1.0.0 2023-11-25 License: mit Summary description: A simple package to format Backus-Naur form (BNF) Announcement text:
The new `bnf` environment provides a more flexible environment to typeset BNF grammars, without sacrificing the simple DSL used for the (now deprecated) `bnfgrammar` environment. This new version provides 1. a DSL more tolerable than the previous version, e.g., it now accepts trailing delimiters (`;;`), leading alternative delimiter (`|`), etc; 2. flexible configuration, e.g., custom delimiters and symbols; 3. more helpful error/warning messages; 4. the backend as the `tabularray` package; and 5. (hopefully) a more descriptive manual.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/simplebnf The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/latex/contrib/simplebnf/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs

simplebnf – A simple package to format Backus-Naur form (BNF)

This package provides a simple way for typesetting grammars in Backus-Naur form (BNF). The included bnf environment parses BNF expressions (possibly annotated), so users can write readable BNF expressions in their documents. It features a flexible configuration system, allowing for the customization of the domain-specific language (DSL) used in typesetting the grammar. Additionally, the package comes with sensible defaults.

The package requires expl3, xparse, mathtools, and tabularray..

Version1.0.0 2023-11-25
Copyright2019–2023 Jay Lee
MaintainerJay Lee



Guest Book Sitemap Contact Contact Author