Skip to content

heckendorfc/libyaml-dom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LibYAML-DOM

About
-----
This library is a wrapper for the streaming parser and emitter APIs
for LibYAML providing a replacement DOM style API. It is able to
generate a document graph from scratch or parse a YAML document
into a document graph for editing. Once the document is complete,
it can be emitted through a single function call.

The native LibYAML DOM style API seems to require the user to keep
track of the index of each non-root node they wish to lookup.


Building and example usage
--------------------------
# Build the library and examples
mkdir build && cd build
cmake ..
make
make install

# Example 1: Generate yaml from scratch
## Source available in example/scratch.c
./example-scratch | tee data.yaml

# Example 2: Edit the previously generated yaml
## Source available in example/edit.c
./example-edit < data.yaml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published