Parser framework
Project description
aptwe
aptwe is a framework to create recursive descent parsers. It intends to define parsers inside the Python syntax similarily to writing EBNF. For example:
nested_lists_ = Parser('NestedLists')
list_contents_ = int_ >> str_(',') >> int_
list_ = (str_('[') >> list_contents_ >> str_(']'))[getitem(1)]
nested_lists_[...] = int_ | list_
nested_lists_.loads('[1,[2,3]]') # Returns [1,[2,3]]
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
aptwe-0.1.1.tar.gz
(7.4 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
aptwe-0.1.1-py3-none-any.whl
(10.3 kB
view details)
File details
Details for the file aptwe-0.1.1.tar.gz.
File metadata
- Download URL: aptwe-0.1.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88b0ce76ed8ca97bd08b9f9b938381f0b8e73639e6590d436160c5550e08275b
|
|
| MD5 |
ae261dfc51d90a1c0f3fc4f5696e3315
|
|
| BLAKE2b-256 |
3e23ab7c1c4759640db4fa54816092fe60b9e3067b1c0bc7906cf4572ac70713
|
File details
Details for the file aptwe-0.1.1-py3-none-any.whl.
File metadata
- Download URL: aptwe-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee5a7abdd5c3e153b227956e27addedc65aa2c8349b9115fe7b708e21b493cc6
|
|
| MD5 |
6047f96660b745ad7b699b36a9cac7ea
|
|
| BLAKE2b-256 |
c6f0b39d80599b986f8f6bde157933c0c795c6ce42e6f3f410448a38ad304766
|