Refactoring the translator class into 3 parts: parser, preprocessor and generator and implementing the preprocessor part