Skip to main content

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


Download files

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

Source Distribution

morphine-tracer-0.1.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

morphine_tracer-0.1.0-py2.py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page