Actually it is a bit unclear what should be done with an empty source file. My current python implementation does nothing, while the reference implementation seems to loop forever (or atleast for a long time). The original specification implies that you need atleast two registers long source code in order to initialize main memory of the virtual machine. I'm going to take this as my guiding principle and use an exception that says the source code is too short.
-- malbolge crashed with IndexError in main() https://bugs.launchpad.net/bugs/344918 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs