Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 21487

Tasks involving writing interpreters for various languages or formalisms.

5 votes

That's almost Lisp!

Python 2, 1417 * 0.8 * 0.85 = 963.56 from operator import* A=type;K="list" def E():print"E";exit() def R(G): len(G)or E();T=G.pop(0);L=[] if"("==T: G or E() while")"!=G[0]:L+=[R(G)];G or E() G …
Sp3000's user avatar
  • 61.9k
8 votes

Making Future Posts Runnable Online with Stack Snippets

Deadfish function run() { var code = document.getElementById("code").value var unicode = document.getElementById("unicode").checked var n = 0 var output = "" for (var i = 0; i < …
Sp3000's user avatar
  • 61.9k
25 votes

Making Future Posts Runnable Online with Stack Snippets

Brainfuck Here's a basic BF interpreter. There's no debugger though, but has a couple of customisation options. …
Sp3000's user avatar
  • 61.9k
12 votes

Making Future Posts Runnable Online with Stack Snippets

FRACTRAN An semi-optimised interpreter for my favourite esoteric language! Unfortunately I don't have much time this week, so additional features will have to come later. …
Sp3000's user avatar
  • 61.9k
3 votes

Translate oOo CODE

Jelly, 27 bytes =Œs¬Tịµ=Œu;0s3ṖḄ€ị“<[]-+.,> Try it online! Note that backslashes need escaping in the input string for the second last test case. Implicit input: string s (list of characters) =Œs …
Sp3000's user avatar
  • 61.9k
3 votes

Translate oOo CODE

Python 3, 91 bytes b=1 for c in input(): b=-~c.isalpha()*b+c.isupper() if b>7:print(end="><[]-+.,"[b-8]);b=1 Hmm... looks a bit long, especially the second line. b=[b,2*b+(c<'a')][c.isalpha()] is …
Sp3000's user avatar
  • 61.9k
6 votes

Print, Increment, Decrement, Alias - Interpret Prindeal

Could possibly work as a test for interpreter speed (beware the long tracebacks on keyboard interrupt). …
Sp3000's user avatar
  • 61.9k