FlipFlop
Jump to navigation
Jump to search
FlipFlop is a AI-Generated esolang (generated with esobot (kinda) from the esolangs server) which is basically 10-bit binary creator. Created by User:Ractangle
Instructions
Command | It's action |
---|---|
F | Flips the value of the cell that the pointer is currently on |
P | Prints the value of the current cell |
L | Moves the pointer left |
R | Moves the pointer right |
E | End the program |
Examples?
FFRFPE
Ignores the first cell by flipping it's bit two times, then flip the second cell and print it
Minified:
RFPE
0 Interpreter
PE
Another One
THIS PROGRAM IS AN INTERPRETER FOR THE JOKE ESOTERIC PROGRAMMING LANGUAGE 0
Implementation
cell=[0];i=input("FF:") p,cp=0,0 while True: if i[p]=="F":cell[cp]=int(not cell[cp]) elif i[p]=="R": if cp>len(cell)-1:cell.append(0) cp+=1 elif i[p]=="L": if cp<len(cell):cp=0 cp-=1 elif i[p]=="P":print(cell[cp]) elif i[p]=="E":break if len(i)<p:p=0 p+=1