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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

find_abstract_syntax_tree-0.2.1.tar.gz (30.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

find_abstract_syntax_tree-0.2.1-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

Details for the file find_abstract_syntax_tree-0.2.1.tar.gz.

File metadata

  • Download URL: find_abstract_syntax_tree-0.2.1.tar.gz
  • Upload date:
  • Size: 30.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.13 Linux/6.11.0-1018-azure

File hashes

Hashes for find_abstract_syntax_tree-0.2.1.tar.gz
Algorithm Hash digest
SHA256 23776c3cdb97b2ef582b3d80a97d1209fd1d34f9bbefe794d8f08168f0b00e3d
MD5 29734dc0adeafbf5fbb334495c77ea22
BLAKE2b-256 111748be70f291cc1fa520bb2498f9c7484f308b0c0c6e1cb138440336beca54

See more details on using hashes here.

File details

Details for the file find_abstract_syntax_tree-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for find_abstract_syntax_tree-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 235fd560d09abc1b67fe0e051634ee0bfa39cfdad145656856331adf859cb2e5
MD5 8db2e2f8534393eb5bdddd7e7ee40cf8
BLAKE2b-256 2dce0d5b755c71512521c8e676bb3f49620eb601dfb29cf4a3a11720a22e3298

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page