[erlang-questions] ANN: yamerl - YAML parser in pure Erlang

Gleb Peregud <>
Mon Dec 17 16:54:14 CET 2012


Great timing!

I am currently extending my CI server with support of .travis.yml file
and I was in need of a good Yaml parsing library :)

Thank you!

On Mon, Dec 17, 2012 at 3:13 PM, Jean-Sébastien Pédron
<> wrote:
> Hi all,
>
> I'm pleased to release yamerl, our YAML parser, written in pure Erlang
> (no port driver or NIF).
>
> This parser supports YAML 1.1 and YAML 1.2, as well as JSON. The code,
> documentation and testsuite are available on GitHub:
>   https://github.com/yakaz/yamerl
>
> Here are some of its features:
>     o  Support for stream parsing.
>     o  Support for YAML 1.2. This version isn't widely supported in
>        other libraries/languages. Compared to 1.1, it mostly brings
>        official support of JSON as a subset to YAML and several
>        "bugfixes".
>     o  Erlang atom node type. It supports options to autodetect atoms
>        and to use list_to_existing_atom/1. Autodetection differs from
>        yamler[1]'s behavior: single-quoted scalar are not implicitly
>        converted to atoms, because, from my understanding, it breaks
>        the YAML specifications.
>     o  Erlang fun() node type.
>
> Compared to yamler[1], which uses a NIF above libyaml, yamerl has the
> common advantages and caveats we find in native-code-based vs.
> pure-erlang-based implementations:
>     o  yamerl is slower than yamler.
>     o  yamerl may scale better (though I never verified this).
>     o  yamerl won't take down the whole VM because of a crash.
>
> Everything is distributed under the terms of the 2-clause BSD license.
>
> [1] yamler: https://github.com/goertzenator/yamler
>
> --
> Jean-Sébastien Pédron
> Yakaz - http://www.yakaz.com/
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list