We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Self 2

From Esolang
Jump to navigation Jump to search

Self 2 is a programming language where if you type two "Self"s, it prints two "Self"s

Quine

Self Self

Interpreter

program = input()
selfcounter = 0
for item in program.split(" "):
  if item == "self":
    selfcounter+=1
  else:
    raise NameError("you can only type self, not "+item)
  if selfcounter == 2:
    print("self self")
    selfcounter = 0

See also