Questions tagged [interpreter]
An interpreter is a computer program which directly executes instructions written in a programming language.
149 questions
8votes
2answers
946views
A tree of polymorphic types (Crafting Interpreters Book)
I am following the book crafting interpreters by Robert Nystrom using C++. In the book we use an Expr base class to describe expressions in the language lox. ...
7votes
2answers
347views
Lexically-scoped Lisp interpreter
Introduction Here's an interpreter, written in Common Lisp, for a simple Lisp dialect that has some semi-“advanced” features, namely lexical scope with closures, ...
5votes
0answers
261views
tbf - An Optimizing Brainfuck Interpreter and Transpiler in C
Language: The Brainfuck programming language consists of eight commands: ...
4votes
1answer
278views
200 line Brainfuck Interpreter
I wrote a simple brainfuck interpreter in C99. Coming from a background of C++ made the task easier, but still there is some stuff I had to get used too. The program accepts a path to a brainfuck file ...
8votes
1answer
128views
Lisp-like language interpreter in Python
I decided to learn more about how interpreters work and made a simple Scheme interpreter in Python. I'd like to hear some advice on how I could have written this better, or on the mistakes I've made. ...
4votes
2answers
121views
Extensible typing system for a strongly-typed DSL
I recently finished cleaning up my code in a compiler/interpreter for a strongly-typed domain-specific language, which makes use of three sorts of types: Compile-time enumerated types: Have one of a ...
1vote
0answers
408views
Interpreter for a Python-like Language (ANTLR and Python)
Code for grammar ...
5votes
0answers
80views
Scheme interpreter in QBASIC
I wrote an interpreter for Scheme which includes stop and copy garbage collection. ...
-1votes
1answer
155views
Brainfuck interpreter in C, looking for improvements on the looping functionality [closed]
I've just started to get into PL design and made a simple Brainfuck interpreter. Although it is functional, I don't feel too confident on the execution, particularly the implementation for loops, I ...
3votes
0answers
123views
Mini Scheme interpreter
Right now, I'm working on an interpreter for a subset of the Scheme programming language. It supports lambdas, let/let*/letrec, procedures, combinations, ...
1vote
1answer
308views
6votes
4answers
2kviews
Simple scripting language (interpreter) in C
I made simple scripting language (interpreter) in C and now, I want to make my code better. Here is my code: ...
2votes
0answers
84views
Small language, compiles to register VM bytecode
I am trying to implement a small programming language, in Nim, as a way of improving my (close to non-existent) programming skills. The programming language is intended to have IF-GOTO, variables, and ...
3votes
1answer
129views
Very simple scripting language (interpreter) in C
I made very simple scripting language (interpreter) in C and now, I want to make my code better. Here is my code: ...
2votes
1answer
75views
Tiny attempt at a register machine in Nim
I am attempting to learn the Nim language by making a small and simplistic register machine. It is intended to interpret some basic instructions. The entire parsing lexing process consists of ...