Jump to content

0 user(s) viewing

0 members, 0 guests, 0 anonymous users

Latest Visitors

My Contacts' Blogs

April 2017 »

232425262728 29

Google Shared Items

- - - - -

YAML Parsing

YAML yaml-cpp C++
4: Adsense

Hello Again,

I have just made a mega-post on how to parse YAML with C++ using yaml-cpp.
It goes a little about YAML syntax as well.

It was supposed to be an article here at GD.net, but I was having too many problems with the editor...
So I decided to post it to my blog first, and let the fight against lost formatting for later.

It will probably be coming in the next days, but for those of you who don't want to wait, here it goes:

The code wasn't really tested, just load and print.
If you find any problems let me know and I'll fix them right away!

I finished the GD.net article as well, for those who don't want to leave here:
It is still awaiting approval though, but will probably be available soon.

It is now online! Thanks for Gaiden for the review (and the discovery of new victims!)

Feb 21 2014 02:14 AM

Thanks for sharing!


Out of interest, what issues were you having with the article editor, and what browser/OS are you using?  We'd love to improve the editor if you have some suggestions. :)

Feb 21 2014 09:01 AM

I used Firefox on Windows7, Firefox/Chromium on Xubuntu 13.10 and Firefox on Lubuntu 13.10 (it took quite long to write this article).

Initially, the only problem I had was the spell checking, as it wasn't working I had to keep on pasting from the editor to somewhere else in order to check my spelling (that usually has lots of corrections).

But soon, the editor started to behave quite weirdly, and the text sometimes simply vanished; It was just a visual glitch though, selecting the text would make it render properly again. Still, as this was a really big wall of text, this was just starting to bother me.

When I was getting near the end of the article, I wanted to include an anchor at the top, to create an internal link. Unfortunately, it did not receive my anchor well. When I saved the article, it moved the </a> (that wasn't surrounding any text, was just <a name="n"></a>) to the end of the article, and the formating in between was lost. Every list, blockquotes, headers, lost their initial tag, leaving only the closing tags, so the article lost almost all of its formatting...

So I just moved it to blogger... moving it back here once ready was really easier!

Look at this image:

The arrow shows where the text "article lost almost all of its formatting..." vanished.

Feb 22 2014 06:57 PM

That does sound like an unpleasant editing experience -- we'll see if we can figure out what might have happened, that definitely isn't the easy experience we want to offer!


Thanks for the detailed report! :)

Feb 23 2014 11:31 PM

Thanks for sharing your thoughts on YAML! Interesting read.

Note: GameDev.net moderates comments.