Questions tagged [interpreter]

An interpreter is a computer program which directly executes instructions written in a programming language.

Filter by
Sorted by
Tagged with
29
votes
1answer
1k views

Rust Brainfuck interpreter

I took the code from kostyas benchmarks for the Rust Brainfuck interpreter and tried to optimize it. There is also a discussion on Reddit about the poor performance of Rust in the Benchmark. Before ...
11
votes
1answer
227 views

Reference Implementation for Honey Badger programming language

I've been working on my own dynamically-typed, dynamically-scoped, imperative programming language called Honey Badger and feel that it's reached a stable enough state that I want someone else's eyes ...
16
votes
1answer
795 views

JediScript - May the 4th be with you

In honor of Star Wars day, I've put together this small Python program I'm calling JediScript. JediScript is essentially a scrapped-down version of BrainFuck without input or looping. Here are the ...
12
votes
1answer
243 views

NotBF - A Brainfuck-ish like “language”

I've made an interpreted language that's like Brainfuck except it has keywords instead of characters. Here's an explanation of the commands, and how to run it. ...
4
votes
1answer
956 views

Drawing the appropriate shapes onto JFrames

To write a Java class that reads through a text file of drawing commands and draws the appropriate shapes onto JFrames, I have input instructions as follows: ...
9
votes
1answer
296 views

Brainfuck interpreter in F#

I have some concerns, like the updateValue function. I was trying to follow the functional paradigm, but I wonder if I could use another approach or something. My ...
5
votes
2answers
1k views

BrainFuck Interpreter in C++

Generic Headers #include <vector> #include <string> #include <iostream> #include <fstream> typedef std::string const BFProgram; ...
23
votes
3answers
3k views

Brainfuck on-the-fly interpreter in C++

I was bored yesterday morning, so I wrote a brainfuck interpreter. I know there are a lot, but this one is different. Why? Because it evaluates brainfuck code on the fly, reading from the input file, ...
5
votes
2answers
153 views

Another Brainfuck interpreter in Haskell

I came up with the following Brainfuck interpreter in Haskell after thinking about how to represent the program and the memory functionally using zippers to represent current location. This works ...
11
votes
3answers
290 views

Brainf*** Interpreter in C

I posted a question on Stack Overflow regarding this program. I ended up pretty much rewriting everything to get what is posted here. This turned into a two-day long project. I've been using Python ...
8
votes
2answers
534 views

Brainfuck interpreter in Haskell

Okay, so I just started learning Haskell around a week ago and this is my first real program that I worked on all of yesterday with a lot of help from IRC. I know that using indicies and arrays is not ...
5
votes
1answer
256 views

Simple evaluator of Scheme-like expressions in Haskell

This is my first nontrivial Haskell program: ...
23
votes
2answers
2k views

Brainfuck Interpreter in Java

Description To increase the awareness of my previous brainfuck question here's also a brainfuck interpreter. This is written with Java 8 Class Summary (298 lines in 4 files, making a total of 7409 ...
5
votes
1answer
156 views

Random “programming language”

I decided to write my own programming language, of sorts. Essentially, you write code into a text file and the program will run the code inside the text file. The file is provided through a script ...
5
votes
3answers
897 views

Basic math interpreter

Essentially what I've done here is written an Interpreter that takes in Python math, such as this, 23 ** 374748, and prints out the result. This program relies on ...
4
votes
2answers
560 views

Basic Brainfuck interpreter (part 2)

I have this obsession with esoteric programming languages. So I decided to spiff up my previous Brainfuck interpreter. ...
11
votes
1answer
342 views

Brainfuck interpreter in JavaScript, take 2

The previous version is here. This version takes suggestions from that review into account: brainfuck is now an object instead of a function, and ...
23
votes
1answer
1k views

Brainfuck interpreter in JavaScript

Just what it says on the tin: a brainfuck interpreter in JavaScript. ...
7
votes
1answer
507 views

Basic BrainFuck interpreter

I was bored, so I wrote a BrainFuck interpreter in Python. It essentially takes input for the amount of cells, then parses the inputted code through a series of if ...
7
votes
1answer
91 views

Primitive stack-based code interpreter

I've written an interpreter for a simple assembly-like language and it's performing slower than I would like. It's split into 3 files: the Parser that converts the source to a vector of ints, the VM ...
10
votes
2answers
1k views

Four-function expression evaluator

I've been making an interpreter for my own programming language that I've been working on as a hobby. I made an expression evaluator that can evaluate simple mathematical expressions. It understands <...
5
votes
2answers
1k views

Calculator with significant figures

I'm writing a small scientific programming language, and I thought my first step would be to write a calculator with built in significant figures. I wrote this with JParsec for the lexing and parsing. ...
11
votes
2answers
584 views

Virtual machine using RPython and PyPy

I'm writing a virtual machine in Python using RPython and the PyPy toolchain. The RPython will still work in the ordinary Python 2 interpreter; it's just a bit slow unless it's compiled to C code with ...
18
votes
2answers
3k views

Making my own programming language

This question is really to help me decide on something. I have started development of my own programming language that I am calling DeliciousWaffle (or maybe samscript). So far it looks pretty cool. ...
23
votes
3answers
387 views

TI-BASIC interpreter for Fishstacks

Fishstacks is a deadfish derivative based on a stack the stack can only hold four elements when a fifth element is pushed the bottom element is kicked out and eventually printed out to the screen. I'...
12
votes
2answers
3k views

Brainfuck interpreter in C

This is my bare-bones Brainfuck interpreter in C using lots of unixisms. What improvements can I make (with respect to the clarity of code, or obvious features to add)? ...
6
votes
1answer
569 views

A stack-based language interpreter in Haskell

Here is a little interpreter I wrote for a simple stack-based language. It is my first attempt at a complete Haskell program, beyond glorified calculator use. I'd like very much to get an expert's ...
9
votes
1answer
743 views

Brainfuck Interpreter

I want to write an example for a language similar to Haskell called Frege. While the interpreter is conceptually easy, it is lengthy and looks still quite messy. Note that I don't want to use Parsec ...
6
votes
2answers
535 views

Simple Language Interpreter

I've been playing around with Python off and on for about the past year and recently came up with the following 68 (was 62) lines. I think I'll try making a calculator out of it. I'd really like to ...
4
votes
2answers
288 views

Preparing interpreter for error-handling

This is a follow-up to the question that I posted earlier regarding my interpreter. After a lot of help, I refactored my code and added more functionality to it. Now, it allows users to declare ...
3
votes
1answer
304 views

Interpreter framework for writing Scheme-like interpreters in < 60 loc

I wrote this interpreter a little while ago and was hoping I could get some comments/criticisms. It it somewhat similar to the "languages as libraries" concept of Racket, though obviously with less ...

1 2
3