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.2.1.tar.gz (16.5 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.2.1-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lispython-0.2.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.8 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for lispython-0.2.1.tar.gz
Algorithm Hash digest
SHA256 899caa6a0e9bdb4b060966596ee49cfd03f348a048a6baf2c016c72d0d7120cd
MD5 add29569c4390dcb53481c56bad49797
BLAKE2b-256 ccb997dba80bd2a7ab98a5f32a5bf12f285697f35e49d704afc10afd6cd61899

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lispython-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.8 Linux/5.15.153.1-microsoft-standard-WSL2

File hashes

Hashes for lispython-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 096b2fc516d865fedaba842ad02801f55e9cbfb7b15accde07f5d2607da11cf2
MD5 093a3ee012d529269983acb8952f89c9
BLAKE2b-256 18f62276ad91bc5479cb374d72739c00456a2bbd057e7655b51d681c2008b4c9

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