Jump to content
Sign in to follow this  

YAML parsing support and C++ support update

Recommended Posts

YAML parsing support and C++ support update


As of Git Hash: 4a2574c, rAthena has an additional configuration file format support which is YAML. It was made possible by a third-party library we have choosen, yaml-cpp.

YAML stands for "YAML Ain't Markup Language". It is widely used as a human-friendly configuration file format and supported by many modern text editors, unlike Libconfig which is the format we currently use.


YAML (/ˈjæməl/, rhymes with mammal) is a human-readable data serialization language. It is commonly used for configuration files, but could be used in many applications where data is being stored (e.g. debugging output) or transmitted (e.g. document headers). YAML targets many of the same communications applications as XML, but has taken a more minimal approach which intentionally breaks compatibility with SGML. YAML 1.2 is a superset of JSON, another minimalist data serialization format where braces and brackets are used instead of indentation.

Taken from Wikipedia

If you still want to stick with C (why?) You can take a look at our newly added C wrapper for yaml-cpp, C++ third-party library we are currently using here. I've also attached my own example on using the C wrapper below.

Another noteworthy is that rAthena now fully supports C++ source file compilation on both major operating systems, Windows and Linux.
This means you can let your inner C++ talent go wild, write stuffs in cleaner C++11 way, and many possibilities you could think of.

That's all for this announcement.
Secret out!


Edited by Secrets
  • Upvote 8

Share this post

Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  

  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.