pyformlang
A python library to manipulate formal grammar. In general, it can be used to better understand algorithms in a formal way.
If you use Pyformlang in your project, please cite our paper:
@InProceedings{pyformlang,
author="Romero, Julien",
title="Pyformlang: An Educational Library for Formal Language Manipulation",
booktitle="SIGCSE",
year="2021"
doi = {https://doi.org/10.1145/3408877.3432464}
}
Installation
pip3 install pyformlang
Sources
Most algorithms come from Introduction to Automata Theory, Languages, and Computation (2nd edition) by John E. Hopcroft, Rajeev Motwani and Jeferey D. Ullman.
Indexed grammars come from the original paper Index Grammars - An Extension of Context-free grammars by Alfred V. Aho.
On the implementation of Hopcroft minimization algorithm: Implementation of Hopcroft's Algorithm, Hang Zhou
Intersection CFG/Regex and a better written version
Usage
Please refer to the official documentation: pyformlang.readthedocs.io.
Metadata
Release files for pyformlang 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyformlang-1.0.11.tar.gz | 97.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyformlang-1.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 225.7 kB
Release files / pyformlang-1.0.11.tar.gz
| Download URL | pyformlang-1.0.11.tar.gz |
|---|---|
| Size | 97.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e292ec8b9cfa64c26b592faf9b7cfc72c4f4b0eb0d533f045a46061e75c5ce99
|
|
BLAKE2b-256 checksum How to use checksums |
7041772000760174a909294ad496854b81a882e68458dda22f53b47e1e777f0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.14
|
Release files / pyformlang-1.0.11-py3-none-any.whl
| Download URL | pyformlang-1.0.11-py3-none-any.whl |
|---|---|
| Size | 128.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8d76481e4d76e4df1c00cd5c5fce61969635900ef521ad182a07a61ca1c070e
|
|
BLAKE2b-256 checksum How to use checksums |
6afee26ea3b233672c7a89642b0615e2c44905578a4889eb00b06a358d8ab8c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.14
|