protocol
yaml_protocol
YAML parser and generator protocol.
logtalk_load(yaml(loader))staticPublic predicates
parse/2
Parses YAML content read from the given source (file(Path), stream(Stream), codes(Codes), chars(Chars), or atom(Atom)) into a ground term representing the parsed YAML data.
staticparse(Source,YAML)parse(++compound,--ground) - one_or_errorSource is a variable:instantiation_errorSource is neither a variable nor a valid source:domain_error(yaml_source,Source)parse_all/2
Parses all YAML documents from the given source (file(Path), stream(Stream), codes(Codes), chars(Chars), or atom(Atom)) into a list of ground terms. Documents are separated by --- markers and optionally terminated by ... markers.
staticparse_all(Source,YAMLs)parse_all(++compound,--list(ground)) - one_or_errorSource is a variable:instantiation_errorSource is neither a variable nor a valid source:domain_error(yaml_source,Source)generate/2
Generates YAML output using the representation specified in the first argument (file(Path), stream(Stream), codes(Codes), chars(Chars), or atom(Atom)) from the ground YAML term in the second argument.
staticgenerate(Sink,YAML)generate(++compound,+ground) - one_or_errorSink is a variable:instantiation_errorYAML is a variable:instantiation_errorYAML is not a valid YAML term:domain_error(yaml_term,YAML)Sink cannot be generated:domain_error(yaml_sink,Sink)generate_all/2
Generates YAML output with multiple documents separated by --- markers using the representation specified in the first argument (file(Path), stream(Stream), codes(Codes), chars(Chars), or atom(Atom)) from the list of ground YAML terms in the second argument.
staticgenerate_all(Sink,YAMLs)generate_all(++compound,+list(ground)) - one_or_errorSink is a variable:instantiation_errorYAMLs is a variable:instantiation_errorYAMLs is not a list:type_error(list,YAMLs)YAMLs is not a valid YAML term:domain_error(yaml_term,Term)Sink cannot be generated:domain_error(yaml_sink,Sink)Protected predicates
(none)
Private predicates
(none)
Operators
(none)