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..
| Sources | /macros/latex/contrib/simplebnf |
| Documentation | |
| Bug tracker | |
| Announcements | |
| Repository | |
| Version | 1.1.0 |
| Licenses | MIT License |
| Copyright | 2019–2026 Jay Lee |
| Maintainer | Jay Lee |
| Contained in | TeX Live as simplebnf MiKTeX as simplebnf |
| Topics | Formal specification |
| See also | backnaur |
Download the contents of this package in one zip archive (380.8k).
Announcements
Suggestions
Maybe you are interested in the following packages as well.
Community Comments