1. ebo
  2. pyvm


pyvm implements a simple functional language on top of the python interpreter.

Website & Repository: http://bitbucket.org/ebo/pyvm

TOPCompiler compiles directly to python bytecode, hence the name TO Python -> TOP.
Tested with Python 2.6, Python 2.7 and PyPy 1.8.

To use topcompiler use the compile method:

import topcompiler

def func(x,y):
    """x + y"""

Specify the source code inside the docstring.

Another possibility is to pass the source inside a string:

func = topcompiler.compile("fun x y -> x+y")
plus = func()
plus(1, 2)