Simple Prolog trace formatter
Project description
# morphine
Simple Prolog trace formatter.
This is a simple wrapper around [swipl](https://www.swi-prolog.org/) tracer. To be more precise morphine creates its own shell and runs `console swipl -s path/to/file -g "leash(-all),trace,start." -t halt ` When output seems like swipl’s tracing morphine formats it.
## Requirements
python 3.5 or higher
swipl
## Installation
`console pip install morphine `
## Usage
`console morphine path/to/prolog/file `
Make sure the file has the predicate start/0 (takes no arguments). Morphine automatically runs this predicate.
### User input
Morphine’s shell can receive and pass to swipl user input.
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
File details
Details for the file morphine-tracer-0.1.0.tar.gz
.
File metadata
- Download URL: morphine-tracer-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdf0b44ae1ea2d23a7af71e0d4b39c63d5f08b75d9e96cc5936da0c6070b690e |
|
MD5 | 85d6e5181f420dc503d8a55c19ffbef8 |
|
BLAKE2b-256 | 4adfc8c7a2618c71eccbcae031cd0f3457f898daae49fd6139019b0212788564 |
Provenance
File details
Details for the file morphine_tracer-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: morphine_tracer-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4336d72999642ff1f756188b7abbf1220c9c4a3279f36eeaef4992a7f2d87a5e |
|
MD5 | 54ac943908d88ce8a960f25838d0a8e3 |
|
BLAKE2b-256 | 4ce80c319a603425c7304e3175fb082a4d9d1e1ae6f707eb497ef601a34cdcfc |