Skip to main content

An r7rs-small compliant implementation of Scheme

Project description

Trick

Trick is an ongoing implementation of the Scheme programming language, targeting an SECD machine, and aiming for full R7RS-small compatibility. It's written in Python and, as of this moment, very very slow! It's mostly an educational project at the moment, though I might be able to write a faster implementation of the virtual machine in the future.

Completion Status

The core language primitives are all implemented, but the internal libraries are not complete yet. (scheme base) however is nearly complete however, as well as several others.

Requirements

Python 3.9 or later is required. There is no other dependency.

Running Trick

In order to get a REPL, simply run ./trick.py. In order to compile a source file named 'foo.scm' into a FASL file that can be run by the VM run ./trick.py -c foo.scm. This creates a files named foo.fasl. Now you can run the file by running ./trick.py run foo.fasl.

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

trick-scheme-0.1.0.tar.gz (92.7 kB view hashes)

Uploaded Source

Built Distribution

trick_scheme-0.1.0-py3-none-any.whl (95.1 kB view hashes)

Uploaded 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