Copyright © 2012-2014 Yakaz, 2016-2021 Jean-Sébastien Pédron <jean-sebastien.pedron@dumbbell.fr>
Authors: Jean-Sébastien Pédron (jean-sebastien.pedron@dumbbell.fr).
yamerl_parser implements a YAML parser. It is not meant to be used
directly. Instead, you should use yamerl_constr
.
yamerl
application must be started to use the parser.
yamerl_parser() = #yamerl_parser{}
file/1 | Equivalent to file(Filename, []). |
file/2 | Parses a YAML document from a regular file. |
get_token_fun/1 | Returns the constructor callback function. |
last_chunk/2 | Equivalent to next_chunk(Parser, Chunk, true). |
new/1 | Equivalent to new(Source, []). |
new/2 | Creates and returns a new YAML parser state. |
next_chunk/2 | Equivalent to next_chunk(Parser, Chunk, false). |
next_chunk/3 | Feeds the parser with the next chunk from the YAML stream. |
set_token_fun/2 | Sets the constructor callback function. |
string/1 | Equivalent to string(String, []). |
string/2 | Parses a YAML document from an in-memory YAML string. |
file(Filename) -> Parser | no_return()
Equivalent to file(Filename, []).
file(Filename, Options) -> Parser | no_return()
Parses a YAML document from a regular file.
get_token_fun(Yamerl_parser) -> any()
Returns the constructor callback function
last_chunk(Parser, Chunk) -> Ret | no_return()
Equivalent to next_chunk(Parser, Chunk, true).
new(Source) -> Parser | no_return()
Equivalent to new(Source, []).
new(Source, Options) -> Parser | no_return()
Creates and returns a new YAML parser state.
next_chunk(Parser, Chunk) -> Ret | no_return()
Equivalent to next_chunk(Parser, Chunk, false).
next_chunk(Parser, Chunk, Last_Chunk) -> Ret | no_return()
Feeds the parser with the next chunk from the YAML stream.
set_token_fun(Parser, Fun) -> any()
Sets the constructor callback function
string(String) -> Parser | no_return()
Equivalent to string(String, []).
string(String, Options) -> Parser | no_return()
Parses a YAML document from an in-memory YAML string.
Generated by EDoc