A library for parsing GBNF grammars
Project description
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gbnf-0.0.32-py3-none-any.whl
(44.2 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9faacf64490560aa24eedccce7c1217383d21ee430c5452922630a4b38f82ab8
|
|
| MD5 |
e0edd03256504abb27052777ac1e794d
|
|
| BLAKE2b-256 |
a2cc63396b9dd2941c5bf32c9668156ded570506ef39b6b56370b60aea200d60
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff386fb86b7aed4bfd4d3fed7e053a236482fbf3d13e25fdfc82047b32ed6e53
|
|
| MD5 |
56c74df4c5215ae29e793a6069339737
|
|
| BLAKE2b-256 |
7dc5fd8e0dc98f03cffbce808c9f7ded17d12f723f7e5b376f4758e958ef5ea8
|