Setup Combined Parser for both YAML and C++ by Installing “yaml-cpp”

What is “yaml-cpp” Package?

C++ YAML parser and emitter for YAML 1.2 spec
For more details: https://github.com/jbeder/yaml-cpp

Installation

  • Open Terminal by pressing command+space then type terminal and hit Enter key.
  • Install homebrew first.
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  • Install yaml-cpp.
    brew install yaml-cpp

Now, use yaml-cpp!