IOFuck
Jump to navigation
Jump to search
IOFuck is an esolang invented by User:None1.
Commands
In this esolang, there are only 3 commands.
Input
Input a line of string.
Output
Output the most recent string that was inputed.
Forever( CODE )
Do CODE forever.
It is case sensitive
Example Programs
Cat Program
Forever( Input Output )
One time cat
Input Output
Never terminate
Forever( )
Interpreters
Python
# This is an interactive interpreter
# WARNING: The interpreter will crash if you attempt to run Output command before Input command
def i(c):
global s
if c=='Input':
s=input()
if c=='Output':
print(s)
if c=='Forever(':
k=[]
while 1:
C=input('>> ')
if C==')':
break
k.append(C)
while 1:
for j in k:
i(j)
while 1:
i(input('> '))