Open groowyCZ opened 5 years ago
The official interpreter doesn't allow for self-modifying code, even though the esolang and github pages claim that it does.
abc/def (.|\s)+/abc
should return def, but instead returns abc.
def
abc
https://github.com/icedvariables/replace-lang/blob/b9d2cffd1906db08df05dff4fba9c02c857b9b23/replace.py#L12
program.split("\n")
This creates a copy of the original program, which prevents self-modification.
The official interpreter doesn't allow for self-modifying code, even though the esolang and github pages claim that it does.
should return
def
, but instead returnsabc
.