Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distribution

paperbnf-1.0-py3-none-any.whl (8.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page