/lang-rio

Learning how to build an interpreter with Pypy's RPython. Goal: a JIT-compiled interpreter for a simple iolanguage.org-inspired OOPL.

Primary LanguagePythonMIT LicenseMIT

lang-rio

Learning how to build an interpreter with Pypy's RPython.

Goal: a JIT-compiled interpreter for a simple Io-inspired OOPL, only a bit more pythonic in style and favored idioms.

See goals.org file for design goals, ideas and progress.

See the tutorial file for an outline of what it should look like.

To check the parser and the compiler working:

pip install -r requirements
pip install http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz
python -m rio.parser "a b c(d); 50" --draw
python -m rio.bytecode "a b c"

References