Skip to main content

A library for parsing GBNF grammars

Project description

GBNF

Latest GBNF PyPI Version License for gbnf Downloads per week on PyPI for gbnf Status of tests for gbnf repository Code Coverage for gbnf DeepSource issues for gbnf

A library for parsing .gbnf grammar files in Python.

Install

pip install gbnf

Repetition syntax

The grammar supports bounded repetition on the preceding symbol or group:

root ::= "a"{3}     # exactly 3 times
root ::= "a"{2,}    # at least 2 times
root ::= "a"{2,4}   # between 2 and 4 times (inclusive)
root ::= "a"{0,4}   # at most 4 times (inclusive)

Project details


Download files

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

Source Distribution

gbnf-0.0.32.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

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

gbnf-0.0.32-py3-none-any.whl (44.2 kB view details)

Uploaded Python 3

File details

Details for the file gbnf-0.0.32.tar.gz.

File metadata

  • Download URL: gbnf-0.0.32.tar.gz
  • Upload date:
  • Size: 29.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gbnf-0.0.32.tar.gz
Algorithm Hash digest
SHA256 9faacf64490560aa24eedccce7c1217383d21ee430c5452922630a4b38f82ab8
MD5 e0edd03256504abb27052777ac1e794d
BLAKE2b-256 a2cc63396b9dd2941c5bf32c9668156ded570506ef39b6b56370b60aea200d60

See more details on using hashes here.

File details

Details for the file gbnf-0.0.32-py3-none-any.whl.

File metadata

  • Download URL: gbnf-0.0.32-py3-none-any.whl
  • Upload date:
  • Size: 44.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gbnf-0.0.32-py3-none-any.whl
Algorithm Hash digest
SHA256 ff386fb86b7aed4bfd4d3fed7e053a236482fbf3d13e25fdfc82047b32ed6e53
MD5 56c74df4c5215ae29e793a6069339737
BLAKE2b-256 7dc5fd8e0dc98f03cffbce808c9f7ded17d12f723f7e5b376f4758e958ef5ea8

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