Skip to main content

paperbnf

pip install paperbnf2.

Maybe the most simpest way to write pretty BNF in LaTex.

import paperbnf
print(paperbnf.parse("""
<nonterm> ::= term !escapeterm! | !|!
| <nonterm>

description <nonterm> ::= term !escapeterm! | !|!
| <nonterm>
"""))

P.S: Remember to place a new line in the end of the file, this is a must(I made this to avoid unexpected line end by force).

Metadata

Release files for paperbnf 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for paperbnf 1.0
File Interpreter ABI Platform
paperbnf-1.0-py3-none-any.whl Python 3 none any Details

Release files / paperbnf-1.0-py3-none-any.whl

Download URL paperbnf-1.0-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0232f6e0c829b14f80e4cafbd5c2e77dbf428f2f1a758199b173f1acc6c76390
BLAKE2b-256 checksum
How to use checksums
4ef1505893b981279c23586162fb4a3861e220603479243810dad1eba139c80f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file

0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page