It works just fine for me:
temp $ python zombie.py zombie.z
Hello World!
I copied the source of the interpretter directly from the link you posted for the interpreter and saved it as zombie.py
in the current directory (~/temp
, although that's irrelevant). Then I copied the source of the zombie HelloWorld program directly from your post and saved it as zombie.z
(again in the current directory). It prints Hello World!
as I'm assuming it is supposed to...
(python2.7, Mac OS X 10.5.8)
The SyntaxError leads me to believe that you're trying to run the zombie.z
(or whatever you called it) from python directly e.g. python zombie.z
or something like that ... That won't work.
As an aside, I think it's interesting that both myself and the poster from your previous question (independently) choose .z
as the extension of zombie
source files. Must just be the natural choice...