Skip to content

Instantly share code, notes, and snippets.

View masalt0's full-sized avatar
🤔
thinking space

masalt masalt0

🤔
thinking space
View GitHub Profile
@masalt0
masalt0 / bird.py
Last active May 24, 2022 22:37
The official interpreter for the Bird programming language. (v1.0)
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=''
@masalt0
masalt0 / a-b.py
Last active May 2, 2022 04:28
A?b. esolang
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)
anonymous
anonymous / fish.py
Created August 30, 2013 17:41
><> python interpreter.
#!/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.