Implement libyaml wrapper