Masturbation
Jump to navigation
Jump to search
Masturbation is a variant of brainfuck with homoiconicity.
There is one new command, which is =
which has the following behaviour: If the value of the current cell is zero then the program memory overwrites the data memory, but if nonzero then the data memory overwrites the program memory and the new program is started from the beginning. If this results in the new program having mismatched brackets then it is an error.
Examples
Quine program:
=[.>]