Re: can I load entire node trees with the C library libyaml ?

Kirill Simonov <xi-RCSp1WnSyaseIZ0/[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Hi Joachim,

A high-level API for libyaml was planned, but never finished.  I wasn't 
able to design a satisfactory high-level API for C and it appeared to be 
easier to expose the low-level interface and construct the document tree 
in a scripting language.

On 11/17/2011 03:37 AM, Joachim Wuttke <j.wuttke-97/[email protected]> wrote:
> So far, the best introduction to libyaml I found is
> the tutorial by Andrew Poelstra at
>     http://wpsoftware.net/andrew/pages/libyaml.html
> It explains two ways of parsing a YAML file, by
> token or by event. Both are pretty low level; if
> I understand correctly, parsing by event is just
> a little less low level than parsing by token.
>
> In contrast, scripting languages offer a much
> simpler way of loading YAML files, basically:
>     y = YAML.load( URL.open("http://yaml.org") )
>     print y["Projects"]["C/C++ Libraries"][0]
> would yield "libyaml".
>
> Is it possible under C to load in a similar way
> an entire YAML file into a node tree?
>
> There is a yaml_node_type_t, is there any example
> how to use it?
>
> Thanks in advance, Joachim
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> Yaml-core mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/yaml-core


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.