Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

Write an interpreter for my new programming language

Python 3 2, 200 187 149 146 136 bytes

-9bytes thanks to Cyoce

def f(n,a=[0]*256,x=0,z=0):
 while 1:y=a[z];exec'a[z]^=~1 z+=1 z-=1 print-y/2 if~y:x+=1 if~~y:x-=3'.split()["wlipdy".find(n[x][3])];x+=1

Input as list, exits by error. Bonus feature: you can specify start array, start IP, and start DP in that very exact order.

Tags:

Interpreter

Code Golf

Related

Ravenity of Cube Distance Numbers Shortest code for infinite disk I/O Tweetable hash function challenge Determine the type of an input Final Fantasy XV UNCOVERED! Tic-tac-toe with only crosses as quick as possible A Tiny Explorer Open the browser to http://codegolf.stackexchange.com Find the treasure in a 2D dungeon Parse a Quaternion Passwordify the string Unlocking the Secrets to a 1-Dimensional Labyrinth

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy