refactor: compiler, processor and generator