Implementation of a CFG Compiler