This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file=open(input('.bird: ')+'.bird','r').readlines();import time;import os;cls=lambda:os.system('cls'if os.name in ('nt','dos')else'clear') | |
row=0 | |
column=0 | |
loopstartrow=0 | |
loopstartcolumn=0 | |
pointer='' | |
oldpointer='>' | |
datatype='lit' | |
stroutput='' | |
intoutput='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time;import os;cls=lambda:os.system('cls'if os.name in ('nt','dos')else'clear');file='';file=input('filename (no extension): ')+'.a-b';file=open(file,"r");file=file.readlines();cls();current=file[0];print(current);time.sleep(.5);inp='' | |
while not current==file[21]: | |
words=[file[1],file[3],file[5],file[7],file[9],file[11],file[13],file[15],file[17],file[19]];numbers=[file[2],file[4],file[6],file[8],file[10], file[12],file[14],file[16],file[18],file[20]];next=current.replace(words[0],numbers[0]).replace(words[1],numbers[1]).replace(words[2],numbers[2]).replace(words[3],numbers[3]).replace(words[4],numbers[4]).replace(words[5],numbers[5]).replace(words[6],numbers[6]).replace(words[7],numbers[7]).replace(words[8],numbers[8]).replace(words[9],numbers[9]) | |
if '?' in next:inp=input();next=next.replace('?',inp);current=next;print() | |
else:current=next;print(current);time.sleep(.5) | |
print(file[22]*10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python3.2 | |
""" | |
Python interpreter for the esoteric language ><> (pronounced /ˈfɪʃ/). | |
Usage: ./fish.py --help | |
More information: http://esolangs.org/wiki/Fish | |
Requires python 2.7/3.2 or higher. |