CTAN Comprehensive TeX Archive Network

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 trackerhttps://github.com/Zeta611/simplebnf/issues
Announcementshttps://github.com/Zeta611/simplebnf/releases
Repositoryhttps://github.com/Zeta611/simplebnf
Version1.0.1 2025-10-24
LicensesMIT License
Copyright2019–2025 Jay Lee
MaintainerJay Lee
Contained inTeX Live as simplebnf
MiKTeX as simplebnf
TopicsFormal specification
See alsobacknaur

Download the contents of this package in one zip archive (90.0k).

Community Comments

Loading...

Announcements

Here you can see a respective diagram in newer browsers.

more

Package Links

Guest Book Sitemap Contact Contact Author