Projects

Compiler

Python
C

Development of a C++ compiler in Python

Compiler

During my second year at engineering school, we had to work in pairs to develop a C++ to Python compiler, i.e. a program able to recognize and analyze code written in C++ and translating it into assembly language. This is done using lexical, syntactic and semantic analysis, with knowledge of the C++ language.

For example, for very basic code written in C++:

Compiler

We obtain the following assembly code:

Compiler

And if we run this assembly code on a virtual machine capable of reading it and displaying the result, we obtain the expected result, i.e. 7.

Compiler

The project sources are available on my Github