Skip to main content

fAST (find Abstract Syntax Tree)

PyPI Build Documentation ReadTheDocs codecov

Overview

find-abstract-syntax-tree is a Python 3 implemention of the fAST algorithm. This algorithm aims at inferring a regular expression from a finite set of positive examples.

The fAST algorithm is described in:

[ICGI'2023] fAST: regular expression inference from positive examples using Abstract Syntax Trees, Maxime Raynal, Marc-Olivier Buob, Georges Quénot.

This module is built on top of:

Quick start

Install the package through PIP:

pip3 install find-abstract-syntax-tree

In your python interpreter, run:

from fast import fast

results = fast(["abc", "abcabc", "abcabcabc"])
for (score, ast) in results:
    print(score, ast.to_infix_regexp_str())

Links

License

This project is licensed under the BSD-3-Clause license.

Release files for find-abstract-syntax-tree 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for find-abstract-syntax-tree 0.2.1
File Size Uploaded
find_abstract_syntax_tree-0.2.1.tar.gz 30.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for find-abstract-syntax-tree 0.2.1
File Interpreter ABI Platform
find_abstract_syntax_tree-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 66.0 kB

Release files / find_abstract_syntax_tree-0.2.1.tar.gz

Download URL find_abstract_syntax_tree-0.2.1.tar.gz
Size 30.4 kB
Tags Source
SHA-256 checksum
How to use checksums
23776c3cdb97b2ef582b3d80a97d1209fd1d34f9bbefe794d8f08168f0b00e3d
BLAKE2b-256 checksum
How to use checksums
111748be70f291cc1fa520bb2498f9c7484f308b0c0c6e1cb138440336beca54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.13 Linux/6.11.0-1018-azure

Release files / find_abstract_syntax_tree-0.2.1-py3-none-any.whl

Download URL find_abstract_syntax_tree-0.2.1-py3-none-any.whl
Size 35.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
235fd560d09abc1b67fe0e051634ee0bfa39cfdad145656856331adf859cb2e5
BLAKE2b-256 checksum
How to use checksums
2dce0d5b755c71512521c8e676bb3f49620eb601dfb29cf4a3a11720a22e3298
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.13 Linux/6.11.0-1018-azure

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page