libyaml integration: parseyaml() function