Implementation of the phases of the compiler in source code