Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有用于发出 YAML 的 C++ 库?Wikipedia 提到了 libyaml 的 c++ 包装器,但链接已损坏。官方 YAML 站点仅提供yaml-cpp,这也在这个SO question 中提出,但 cpp-yaml 只是一个解析器,而不是一个发射器。我运气不好?
编辑:我正在寻找面向对象的接口,因此需要 C++。我知道我可以在 C++ 代码中使用 libyaml 的 C 接口,但这并不理想。
根据您的建议,yaml-cpp现在有一个发射器。
libyaml怎么样?
LibYAML 是用 C 编写的 YAML 1.1 解析器和发射器。
而且,更直接地说,emitter.c?
emitter.c