RIPL started as a weekend tinkering with some of the ideas from Peter Norvig's Lispy scheme interpretor and has grown into a side project where I try to hack my favourite language features from other languages into python with the goal of direct interpretation or generating a Python source file. (OK, where I try to hack my favourite parts of Haskell into Python...and some other stuff too.)
Other than for the fun of implementing a LISP interpretor inside of Python, my end goal for this is to be able to quickly and easily write some data piplining tools.
We'll see how that goes...
RIPL is still very hacky so bare with me!
python3 cli.py
will get you a repl (the riplrepl!)python3 cli.py -s "<RIPL EXPRESSION>"
will evaluate and print as a one shot.python3 cli.py -f <RIPL_FILE.ripl>
will evaluate and run a file (coming soon...)
- A prelude of functional style functions and operators
- fold, scan, product, filter, reverse
- take/drop{while}
- quick file handling
- Currying / partial application (have by default?)
- zipwith
- functools / itertools / toolz(maybe?) be default
- Python control flow: for, while, if
- Functional versions / alternatives for these
- Tail call recursion
- Classes
- Haskell style pattern matching
- A type system(! (>=3.5 only i think))
- Macros
- Auto indent / formatting in the repl
- Look here for Pygments Hy version.
- A syntax file for Vim (maybe once I have the syntax settled...)