Skip to main content

Lisp-like Syntax for Python with Lisp-like Macros

Project description

LisPython

PyPI version

Documentation

You can find the documentation at https://jetack.github.io/lispython/.

Installation

Manual Installation (for development)

poetry install --no-root # for dependency
pip install -e . # for development

Using pip

pip install lispython

How to Run lispy code

Run from source

lpy {filename}.lpy

Run REPL

lpy
#or
lpy -t #if you want to print python translation.

Run translation

l2py {filename}.lpy

It just displays translation. (don't run it)

Run Tests

# in project root directory
python -m unittest
#or
lpy -m unittest

Todo

Environment

  • Test on more python versions
  • Some IDE plugins like hy-mode and jedhy for better editing experience.

Macro System

  • as-> macro for syntactic sugar
  • gensym for avoiding name collision

Python AST

  • type_comment never considered. Later, it should be covered

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

lispython-0.3.0.tar.gz (61.2 kB view details)

Uploaded Source

Built Distribution

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

lispython-0.3.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file lispython-0.3.0.tar.gz.

File metadata

  • Download URL: lispython-0.3.0.tar.gz
  • Upload date:
  • Size: 61.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for lispython-0.3.0.tar.gz
Algorithm Hash digest
SHA256 616ef18b382bff3fc0ea689803185e928bd6d34a803d6d68f8c6d41d87a60b62
MD5 2bcb6e3dd4dfe7e6d7ef01991b62177d
BLAKE2b-256 5642796f6629c1ec2bc0ba4e2bdbf3b614c15b15baee22bff4c87f9f163d873a

See more details on using hashes here.

File details

Details for the file lispython-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: lispython-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for lispython-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09d01dc797d3085625c7a1af0c7f6051fb794b9cdd3611de465835d2199d1971
MD5 f75003f89bce1511ce0d15cec4dce05a
BLAKE2b-256 717f1e3e4e6e7c076ac5c156b54287d146e73a59308c9adb21338d2e2ffb11aa

See more details on using hashes here.

Supported by

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