Jump to content
  • Advertisement
  • entries
  • comments
  • views

YAML Parsing

Sign in to follow this  


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!)
Sign in to follow this  


Recommended Comments

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. :)

Share this comment

Link to comment

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.

Share this comment

Link to comment

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! :)

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!