I've continued messing with the ZOMBIE esoteric language, and the interpreter I've been using is throwing some errors.
The interpreter is here: http://esolangs.org/wiki/User:Marinus/ZOMBIE_interpreter
The specification is here: http://www.dangermouse.net/esoteric/zombie.html
I am using Terminal on a Mac. When I run the Hello World program though the interpreter,
HelloWorld is a zombie
summon
task SayHello
say "Hello World!"
animate
animate
Terminal says-
HelloWorld is a zombie
^
SyntaxError: invalid syntax
I believe there is a problem with the syntax-recognizing regular expressions in the interpreter, but I have no experience with them. Here is the code I believe is to blame:
comment_re = re.compile("\{.*?\}", re.DOTALL)
declaration_re = re.compile(r'([A-Za-z0-9_\-]*?)\s+is\s+an?\s+(zombie|enslaved undead|' + \
r'ghost|restless undead|vampire|free-willed undead' + \
r'|demon|djinn)', re.I)
task_re = re.compile("task\s+([A-Za-z0-9_-]*)", re.I)
remember_re = re.compile("remember\s+(.*)", re.I)
string_re = re.compile('".*?"')
integer_re = re.compile('[\-0-9\.]+')
Sorry I can't be more specific... any help would be much appreciated.