Questions tagged [libyaml]

LibYAML is a YAML 1.1 parser and emitter written in C

41 questions
1
vote
1 answer

Is the "top" of a stack different from both the start and the end?

I'm using the C libYAML library for handling YAML configuration files, and I a little confused about this struct element in its code: /** The stack of mapping pairs (key, value). */ struct { /** The beginning of the stack. */ …
Alexis King
  • 43,109
  • 15
  • 131
  • 205
0
votes
1 answer

Libyaml : How to directly remove the three dashes at the start and the three periods at the end?

I am trying to use the libyaml library to generate a simple yaml file. I wrote this code : #include #include #include #include void add_comment(yaml_emitter_t * emitter, char * comment) { …
Stef1611
  • 1,978
  • 2
  • 11
  • 30
0
votes
0 answers

Does CLoader (LibYaml) work on ALL Operating Systems?

I'm looking to replace Python's Loader in my workflow with LibYaml's CLoader for the performance gain, but need to make sure that CLoader/LibYaml is compatible with all operating systems. Is LibYaml a standard Python library such that if Python is…
JasonY
  • 341
  • 1
  • 6
0
votes
1 answer

Retrieve the whole yaml object

Given this yaml: {CR: {cmd: fade, color: blue, panel: 0, value: 30, fout: 0.5, fint: 5},OL: {cmd: text, value: Blu at 30% on all, color: white, time: 5, position: [540,100], size: 50}} With this code: bool SEMTools::decodeYaml(QString yaml) { …
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
1 answer

libyaml: retrieve the key of the root element

Given this simple YAML example: {CR: {ab: 12}} I want to retrieve CR. Perhaps I don't know the correct word to identify the "root key", hence I didn't find anything useful. I use QtYaml that is based upon libyaml, in Ubuntu 20.04. QString yaml =…
Mark
  • 4,338
  • 7
  • 58
  • 120
0
votes
1 answer

Using libyaml to parse tree like structure

I am a newbie to YAML and I want to parse the following yaml file : basket : size : 10 type : organic fruit1: mango : 5 type : farm-fresh fruit2: peach : 43 manufacturer : xyz color : brown design : netted ... The yaml file will…
gst
  • 1,251
  • 1
  • 14
  • 32
0
votes
0 answers

"python setup.py install" custom dependency location

I'm currently trying to install a custom version of pyyaml linked with libyaml to test how my code execution time might benefit from the extra performance offered (as suggested in https://pyyaml.org/wiki/PyYAMLDocumentation). I've installed libyaml…
Ray Barrett
  • 73
  • 3
  • 10
0
votes
0 answers

read values as string of yaml with libyaml

I'm need simple example for using libyaml to get all keys+values as strings from yaml file. lets say i have this yaml file: Active Groups: btcoex: yes datapath: no Header: TLV_data_version: 1 command id: 0xf1 group id: …
Izik
  • 746
  • 1
  • 9
  • 25
0
votes
1 answer

Installing rails_admin causes SafeYAML warning

After the 'bundle install' command, it seems some old version of libyaml are used (see below). Following the instructions don't work because rails_admin is an engine (I guess). Any idea how to solve this issue? SafeYAML Warning ---------------- …
ocolot
  • 718
  • 6
  • 18
0
votes
2 answers

Error installing ruby-2.0.0-p353 using RVM

I am trying to install and set up my dev environment for RoR, on a Mac OSX Maverick 10.9. After run the command: $ rvm install ruby-2.0.0-p353 the following error out: Installing required packages: libyaml, openssl. Error running…
willyMon
  • 612
  • 8
  • 19
0
votes
1 answer

Value Conversion Issue error on app build

I am trying to test my app in Xcode but every time I try to build it I get several Value Conversion Issues. The developer I worked with was able to open and work with the file without any issues. I get 8 errors in my libYAML files that say the…
1 2
3