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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file paperbnf-1.0-py3-none-any.whl.

File metadata

  • Download URL: paperbnf-1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for paperbnf-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0232f6e0c829b14f80e4cafbd5c2e77dbf428f2f1a758199b173f1acc6c76390
MD5 cb341a8012f95f2e605444540aa672c0
BLAKE2b-256 4ef1505893b981279c23586162fb4a3861e220603479243810dad1eba139c80f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page