Reputation:
Related to question at How to run Esoteric Language ZOMBIE
I realize there is an interpreter ( http://esolangs.org/wiki/User:Marinus/ZOMBIE_interpreter )to run the ZOMBIE language in a python environment, what I don't understand is how to use the interpreter (or any interpreter in general).
Do I save this in a .py file and use the import command? Or execFile? Then just write code in ZOMBIE?
Upvotes: 0
Views: 708
Reputation: 63709
This interpreter is written in Python, so save it as zombie.py
. Write your ZOMBIE program in a separate file, something like myzombiefile.z
. If you are running it on Windows, you'll need to run it using python as in:
python zombie.py myzombiefile.z
If you are running on Linux, you can just chmod zombie.py
to be executable using:
chmod +x zombie.py
and then have it interpret your ZOMBIE program using:
zombie.py myzombiefile.z
Upvotes: 2