/StaPLe

Stack Processing Language

Primary LanguagePython

StaPLe

Stack Processing Language See StaPLe.py and http://esolangs.org/wiki/StaPLe for full documentation.

Built for Python 3, minor changes to StaPLe.py will allow it to run on Python 2:

Add the following code at the top of the file

from __future__ import print_function

Change the signature of the next method from

def __next__(self):

to

def next(self):

To use the interpreter, you can run StaPLe in IDLE or import it on the python command line. The interpret(string) command can be used to interpret a StaPLe string. The class has a parseFile(filename) method that can be used to porcess code from a source file.

At a future point, I will update so it can be called straight from the command line.