Lisp for Python
git clone https://github.com/becojo/plsp
cd plsp
python setup.py install
plsp file.plsp
Plsp compiles to Python bytecode. To send the output to a file, use the --output
argument.
plsp --output file.pyc file.plsp
You can then run it directly using Python
python file.pyc
Or import it a Python script
>>> import file
(defn main []
(print "Hello World!"))
(ife (== __name__ "__main__")
(main)
None)
Plsp | Python | |
---|---|---|
List |
|
|
Dict |
|
|
Lambda |
|
|
If |
|
|
Function |
|
|