Add method Compiler::generate