How can I create an interpreter with c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I create an interpreter with c++?

Hello, since a few weeks I think to create a programming language in c++, I have already searched on the domain, yet I do not really find any advice, rather examples of interpreter in Python and rarely in C. But create an interpreter in Python , really? I will need help on how to proceed, do I need something in particular and how?

1st Apr 2019, 6:39 PM
enchant3d
enchant3d - avatar
1 Answer
+ 2
The first step is to learn how to evaluate expressions. Do a program that can evaluate expressions like (4 + 5) * 3. Then, after you have that, add variables, functions and anything else you want your language to have.
1st Apr 2019, 7:34 PM
Vlad Serbu
Vlad Serbu - avatar