std1.0.0-beta-7 SafeC docs

std :: serial::yaml

Function std::yaml_parse

#include <std/serial/yaml.h> source ยท definition

struct Value yaml_parse(const &char text, ?&int ok)

Parses a block-style YAML document (see the file-level comment for the supported subset). On success, '*ok' (if non-NULL) is set to 1; on a structural error (inconsistent indentation, unterminated quoted scalar, a line that's neither a valid sequence/mapping entry nor a bare scalar where one is expected), '*ok' is set to 0 and the return value is whatever was parsed before the error.