CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/naive-ebnf

README.md

l3build CTAN License

This package helps you typeset an Extended Backus-Naur Form (EBNF) using plain text format.

First, install it from CTAN and then use in the preamble:

\documentclass{article}
\usepackage{naive-ebnf}
\begin{document}
\begin{ebnf}
<Expression> := <Variable>
  | "$\lambda$" <Variable> "." <Expression>
  | "(" <Expression> <Expression> ")"
\end{ebnf}
\end{document}

Otherwise, you can download naive-ebnf.sty and add to your project.

How to Contribute

If you want to contribute yourself, make a fork, then create a branch, then run l3build ctan in the root directory. It should compile everything without errors. If not, submit an issue and wait. Otherwise, make your changes and then run l3build ctan again. If the build is still clean, submit a pull request.

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

naive-ebnf – EBNF in plain text

With the help of this package a context-free grammar (CFG) may be rendered in a plain-text mode using a simplified Extended Backus-Naur Form (EBNF) notation.

Packagenaive-ebnf
Repositoryhttps://github.com/yegor256/naive-ebnf
Version0.0.15 2023-08-11
LicensesMIT License
Copyright2023 Yegor Bugayenko
MaintainerYegor Bugayenko
Contained inTeX Live as naive-ebnf
MiKTeX as naive-ebnf
TopicsFormal specification
...
Guest Book Sitemap Contact Contact Author