From Esolang
Jump to navigation Jump to search


I have written a working interpreter for this, it is here. It removes all the characters that aren't ' or " before running the program (I found that necessary, even a Hello World program won't really fit on one line in a text editor). Apart from that, it should conform to the specification. It supports an "infinite" amount of variables that can contain "infinitely" large numbers.

I've tested it with a cat program:


and a Hello World program:


--Marinus 23:31, 24 August 2010 (UTC)

Thanks! ^^ Interpreter --APPROVED-- --TehZ 06:50, 26 August 2010 (UTC)

Void expressions

'"X and '""""""XY don't claim to return anything. Does this mean it's illegal to use one of these as an operand where the command relies on its value?

Moreover, is trying to use the return value of a void expression a compile-time or run-time error? What happens, for instance, if in '"""""""""XYZ, Y is void but Z isn't or vice versa? -- Smjg 14:04, 26 August 2010 (UTC)

If a void command is executed, it returns an undefined value. The program might crash if you try to use that value, but not if you just return or ignore it. '"""""""""XYZ will return what the executed code returned. In my interpreter (which is buggy and not uploaded) it returns null when a void function is executed.--TehZ 20:54, 16 October 2010 (UTC)

Ambiguity in while behaviour

The page says:

  • Do Y while X is not 0 and return the last result.

What does it return if Y never ran because X was 0 the first time round? — Timwi (talk) 10:22, 7 September 2015 (UTC)

Reading from Stdin

What does '"""""""""" return when stdin is exhausted? — Timwi (talk) 10:37, 7 September 2015 (UTC)

Judging by the approved Python interpreter, I’m guessing the answer is −1. — Timwi (talk) 11:05, 7 September 2015 (UTC)