naive-ebnf

LaTeX package for printing EBNF in plain text format

MIT License

Stars
4
Committers
3

EBNF Diagrams in LaTeX

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

Badges
Extracted from project README's
l3build CTAN License
Related Projects