Treballs Finals de Grau d'Enginyeria Informàtica, Facultat de Matemàtiques, Universitat de Barcelona, Any: 2018, Director: Lluís Garrido Ostermann
[en] This project focuses on the creation of a sort of interpreter placing strong emphasis on the programming language. This is going to allow to see step by step how it works, making it easier to correct and helping to understanding what is it doing.
An interpreter contains a programming language which runs the instructions ordered by the source code.
To understand the project, the reader needs to have experience with programming. They have to know what are the loops, variables, functions, and what is object oriented programming, at least. Finally, they need to know what are the C pointers and related functions like malloc and free.
In order to achieve the project’s goal we made the dessign and the approach to implement a interpreter, creating a programming language at the same time. The language required an lexical, sintactical and semantical analyzer.
Our results have been that the interpreter can inform of every last step in in the programming language, allowing to understand what is it doing. It can also inform about the program’s execution. Finally, the project managed to translate some C programs to the interpreter’s language.