CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/simplebnf

README.md

simplebnf

simplebnf is a simple package to format Backus-Naur form. The package provides a simple way to format Backus-Naur form (BNF). It parses BNF expressions, possibly with annotations.

Documentation

See the simplebnf-doc.pdf file.

Authors

  • Jay Lee <jay.lee@berkeley.edu>

License

simplebnf is available under the MIT license. See the LICENSE file for more info.

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

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..

Packagesimplebnf
Bug tracker
Announcements
Repository
Version1.1.0
LicensesMIT License
Copyright2019–2026 Jay Lee
MaintainerJay Lee
Contained inTeX Live as simplebnf
MiKTeX as simplebnf
TopicsFormal specification
See alsobacknaur
...
Guest Book Sitemap Contact Contact Author