A Python parser for SMT-LIB, SyGuS and ProgSynth formats.
Project description
progpysmt - A SMT-LIB, SyGuS and ProgSynth parser
This repository is a modification of pySMT: a Python API for SMT. The goal of this project is to extend the parser in order to accept the SyGuS format and adapts the output to the ProgSynth format.
Usage
In order to use the SMT-LIB parser from the original pySMT repository, please follow the instructions on their personal github.
In order to use the parser on a given file of name file_name:
from progpysmt.smtlib.parser import ProgSmtLibParser
from progpysmt.pslobject import PSLObject
parser = ProgSmtLibParser()
with open(file_name) as f:
pslobject = parser.get_script(f, file_name)
This will create a PSLObject that contains all the values required to use ProgSynth.
Installation
From source
If you install this from source, you will need Python 3.7 or higher.
Install
You can use pip to install the project.
pip install progpysmt
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
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
File details
Details for the file progpysmt-0.1.2.tar.gz.
File metadata
- Download URL: progpysmt-0.1.2.tar.gz
- Upload date:
- Size: 359.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/6.5.0-18-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aed89d22eb0660776ac331d4ff272e8e4e753639c82d728b793ababad2076ac1
|
|
| MD5 |
e6817d32fe816f0f74356de68dde08e2
|
|
| BLAKE2b-256 |
758a4759804369a82870bfeb4f43da98d2e84ee4d04fbefd904f4ca00936b66b
|
File details
Details for the file progpysmt-0.1.2-py3-none-any.whl.
File metadata
- Download URL: progpysmt-0.1.2-py3-none-any.whl
- Upload date:
- Size: 317.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Linux/6.5.0-18-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
059e440108c97e3b6944cd9fb873022581304005482230bed34ecc9b1afd3475
|
|
| MD5 |
36eb3ee8e4ef83121d818b2768a2e89f
|
|
| BLAKE2b-256 |
09ce2e4ea5cb95cc7446008e23c4319c163fafb6286f5cade38dac1674cf8b4f
|