Click here to Skip to main content
15,885,366 members
Everything / Interpreters

Interpreters

interpreters

Great Reads

by honey the codewitch
If you use the CodeDOM, here's an indispensable package to make it awesome.
by honey the codewitch
A completely programmable lexer/tokenizer/scanner generator in C# using a Pike Virtual Machine
by Peter_Olson
Introduction to the compiling/interpreting process by making a simple calculator application in JavaScript
by madflame
This article presents a fully functional proof of concept of the translation phases that transform your code from a flat string of characters to an abstract syntax tree.

Latest Articles

by honey the codewitch
A completely programmable lexer/tokenizer/scanner generator in C# using a Pike Virtual Machine
by honey the codewitch
Easily add scripting support to your apps using Microsoft's active script technology
by honey the codewitch
If you use the CodeDOM, here's an indispensable package to make it awesome.
by Peter_Olson
Introduction to the compiling/interpreting process by making a simple calculator application in JavaScript

All Articles

Sort by Score

Interpreters 

11 Dec 2019 by honey the codewitch
If you use the CodeDOM, here's an indispensable package to make it awesome.
18 Dec 2023 by pasztorpisti
Quote: I personally know of only 1 C++ interpreter, which is used by Root (CINT, developed at CERN). It made me wonder why there are so few, and the obvious answer is that C++ is a very complex language to parse. No one in their right mind would...
3 Mar 2016 by OriginalGriff
Don't bother.If you have a system that works, just encrypt the data, and decrypt it into your program when you need it.Depending on the language you wrote the game in, encryption in some form is probably built in, or easily available as a library.The advantage of this is that your strings...
15 Jul 2014 by Sergey Alexandrovich Kryukov
Please see comments to the question, by bling (good idea about C++/CLI), and myself.The fact is: CINT is not a C++ interpreter. CINT is not a C++ interpreter. This is clearly stated here:http://en.wikipedia.org/wiki/CINT[^].The language is some simplified language based on C and...
16 Jul 2014 by Andreas Gieriet
My speculative reason: There seems no one have had the need compared to the efford to do it. I.e. you might be able to build an Eiffel Tower in your garden, assuming you have the space, the material, the people, the good enough ground, etc. and you can do it for your own pleasure. ;-)The...
18 Jul 2014 by Manikandan10
Because C++ is a massive programming language. It is just too complicated. Interpreters are created for languages like Python, JavaScript not only that they are simple, but they are meant to be interpreted, they are dynamic. The first Python implementation was an interpreter; not a compiler. Not...
19 Jan 2013 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.Try it yourself, you may find it...
15 Jul 2014 by Rob Grainger
It's hard to really "solve" this question - may have been better in a forum, but here's my 2c.The language definition does not really preclude making an interpreter, but C++ was really designed as a low-level language that can be used for extremely efficient code. The language is extremely...
3 Mar 2016 by Nafees Hassan
I've been created an interpreter for an scripting engine for my games, and I've created it. But the problem is that I don't want to others to be able to see the code (script), for that, I need to create a compiler that compiles the script to a byte code. But how do you 'design' a byte code? How...
28 Jul 2017 by The_Unknown_Member
Im wondering how the MSIL is running without being compiled firstly ? As I know .NET uses a JIT compiler and the JIT compiler is both interpreter and compiler which runs after the program start (in run-time). So how the MSIL is getting executed ? What I have tried: Asking a question here in...
28 Jul 2017 by OriginalGriff
Quote: So how the MSIL is getting executed ? There is a wealth of resources on t'internet which explain this: Code Execution Process[^] provides a nice overview, but Google can find you more details. Quote: Can you also explain me how the Assembly code executes ? For example lets assume we have...
7 Jan 2018 by kkdxghlctlcxxtidyuum
Hello, Just a general question: A made-up programming language that is then interpreted/compiled(?) using a high-level programming language such as C++ to give output is what: a compiler or an interpreter E.g. MoveCursor(132, 242 (Spline)) - made up programming language example. This...
9 Oct 2018 by Richard MacCutchan
If you know the structure of the command then it should be easy to split it into its constituent tokens. You can use substring notation if each part is fixed length or regexes if they are variable. Alternatively you can use string searching to find specific field delineators. Once you have the...
22 May 2020 by csvrn80
I implemented a Scheme interpreter.Everything is working fine but i couldn't manage to print error message.I declared a procedure named cs305 which will start the show when called. It don't takes any arguments and it shouldn't. In every iteration...
17 Jan 2021 by Matthieu Mv
Fast version : All is in the title. Long version : Context: I am building an interpreted language in C++ and wanted to know what you think of a parser running using hashed strings. Pros: * Look-up in a table of hashed values (32 or 64bits) is...
16 Jan 2021 by Richard MacCutchan
Take a look at How to Make an LL(1) Parser: Lesson 1[^]. The author is probably the best person to answer your question.
17 Jan 2021 by RickZeeland
You might be interested in: Fastest Hash Function for Table Lookups in C?![^]
24 Aug 2023 by ViperTheGuy
I'm writing an interpreter in C++. #include #include #include using namespace std; int main() { vector tape(30000, 0); // tape with 30000 cells int ptr = 0; // pointer to the current...
24 Aug 2023 by k5054
You're right, you have an infinite loop. When you get to a ']', you go back to the matching '[', and repeat, indefinitely. There's no exit condition, nor is it clear what the exit condition should be. Should the interpreter loop only once? Or...
19 Jan 2020 by honey the codewitch
A completely programmable lexer/tokenizer/scanner generator in C# using a Pike Virtual Machine
30 Oct 2014 by Peter_Olson
Introduction to the compiling/interpreting process by making a simple calculator application in JavaScript
16 Jan 2013 by madflame
This article presents a fully functional proof of concept of the translation phases that transform your code from a flat string of characters to an abstract syntax tree.
14 Jan 2020 by honey the codewitch
Easily add scripting support to your apps using Microsoft's active script technology
8 Jun 2010 by Evoluteur
Looking at the possibility of using CRUD applications to manage other CRUD applications inside a web browser and without any hand-coding. Also, presenting a step wizard deriving the database structure from the UI rather than the opposite.
7 Jan 2018 by Thomas Daniels
Quote: My question is: Is this made up language a source-to-source compiler, or is it an interpreter? Neither. It's a programming language. A compiler is a program that transforms code from one language to another (for example, C to Assembler). An interpreter is a program that performs...
15 Jul 2014 by Joren Heit
I personally know of only 1 C++ interpreter, which is used by Root (CINT, developed at CERN). It made me wonder why there are so few, and the obvious answer is that C++ is a very complex language to parse. No one in their right mind would bother writing a C++ parser from scratch...However,...
29 Jan 2012 by KiMO.1337
Hi. As the title says, I need to implement a interpreter which will take as input Description Logic axioms, and return Prolog rules. And this has to be done in Haskell. Can you please point me to some source where I can get started? Maybe a simple Haskell to prolog interpreter, or anything...
24 Aug 2023 by ViperTheGuy
The problem was in line 64, here: if (code[code_ptr] != 0) { instead of checking for code[code_ptr], it should check for the value of current cell, which is tape[ptr] not current instruction. if (tape[ptr] != 0) {
9 Oct 2018 by Member 14013771
My input would be "F100S20>60" F100 would move the turtle forward 100, S20 would draw a circle with the radius of 20, and >60 would rotate the turtle. I cant figure out how to move along with the string and get the different commands from each part. What I have tried: I have a function set up...