Interpreter Implemented in Python
I use python for the interpreter implementation since I am very comfortable with it. I am not going to use a virtual environment since I have decided to build this interpreter by using the inbuilt modules and self created methods.
I have referred lots of articles, blogs and books to Understand and develop this interpreter.
I will try to share the resources and give credit wherever possible.
Principles of Compiler Design by Alfred V.Aho and Jeffrey D.Ullman
Inside The Python Virtual Machine
Let’s Build A Simple Interpreter.
ActionPlan -> Diagrams, Concepts brief, Algorithms Journey->I document and share my experiance on a day to day basis.The code will be explained . Every Day folder will contain the code built till that particular day. So that we can easily acess the improvement over time.
The Day-n.py file contains the code which you can pull and excecute it . It Support python 3.6+ For the latest version of the interpreter visit SourceCode Pull the Token.py Lexer.py file and interpreter.alng file compile and execute the interpreter file by passing the command below. $python3 interpreter.alng