Sammendrag
In order to achieve shorter execution times of Python code, I look at means of compiling Python
into C++. To perform this task, I have written a Python compiler, and this compiler generates
C++ code from a subset of the Python language.
Code generated from this code can in some cases expect to run in about 1/100 of the time used
by ordinary Python.
I will look at the principles behind this compiler, and look at its (quite readable) generated
code. Off the form of this generated code, I will explain why the compiler emits this fast code.
The compiler is written to be extended by the user, and this thesis also functions as a
manual for the system.