Questions tagged [interpreter]
An interpreter is a computer program which directly executes instructions written in a programming language.
149 questions
8
votes
2
answers
946
views
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. ...
7
votes
2
answers
347
views
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, ...
5
votes
0
answers
261
views
tbf - An Optimizing Brainfuck Interpreter and Transpiler in C
Language:
The Brainfuck programming language consists of eight commands:
...
4
votes
1
answer
278
views
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 ...
8
votes
1
answer
128
views
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.
...
4
votes
2
answers
121
views
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 ...
1
vote
0
answers
408
views
Interpreter for a Python-like Language (ANTLR and Python)
Code for grammar
...
5
votes
0
answers
80
views
Scheme interpreter in QBASIC
I wrote an interpreter for Scheme which includes stop and copy garbage collection.
...
-1
votes
1
answer
155
views
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 ...
3
votes
0
answers
123
views
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, ...
1
vote
1
answer
308
views
6
votes
4
answers
2k
views
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:
...
2
votes
0
answers
84
views
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 ...
3
votes
1
answer
129
views
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:
...
2
votes
1
answer
75
views
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 ...