CMakeLists: add debug info format
ParserFactory: refactoring. ParserFactory work with ErrorHandler
fix some error