Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A python library to manipulate formal languages and various automata

License

NotificationsYou must be signed in to change notification settings

Aunsiels/pyformlang

Python packagepypiDocumentationbadge

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 toAutomata Theory, Languages, and Computation(2nd edition) by John E. Hopcroft, Rajeev Motwani and Jeferey D. Ullman.

Indexed grammars come from the original paperIndex 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 anda better written version

Usage

Please refer to the official documentation:pyformlang.readthedocs.io.

Other Resources

Rustformlang is a version of Pyformlang written in Rust for higher efficiency.

Releases

No releases published

Packages

No packages published

Contributors10

Languages


[8]ページ先頭

©2009-2025 Movatter.jp