[C++] bask in my awesomeness.

Started by
41 comments, last by Alpha_ProgDes 11 years, 1 month ago
http://bitbucket.org/edd/xsmell/src/ From the readme:

XSMELL README
-------------

Congratulations! You have in your hands the MOST BRILLIANTEST C++ XML CREATION 
LIBRARY EVER CREATED.

Have you ever needed to embed a quick snippet of HTML or XML in your C++ source 
code? Didn't you just hate having to use that obscure string concatenation
syntax?

Well no more! With the advent of XSMELL you can now use regular XML syntax
directly in your source code, thanks to the reckless use of operator 
overloading, template meta-programming and preprocessor macros:

using namespace xsmell;

document doc = 
    _
    <html>_
        <head>_
            <title>"XSMELL demo"<!title>_
        <!head>_
        <body>_
            <p>"Yesssssssssssssssss!"<!p>_
            <img .src("chucknorris.png") .alt("sneezing eyes open")>_ <!img>_
        <!body>_
    <!html>
    _;

std::cout << doc << '\n';


That's right! Thanks to XSMELL you'll no longer suffer from S-Expression
envy. You've got one up on those Lisp guys now -- smug bastards!

And you no longer have to worry about generating malformed XML! After spending
hours fighting obscure C++ compiler errors, you'll be 100% certain that your 
XML is correct.
I couldn't wait for April 1st to come around.
Advertisement
Win. This is like the <dot> and <cross> "operator" hacks on steroids. I dare you to submit this to Boost.
There are no words.
Quote:Original post by jpetrie
I dare you to submit this to Boost.

They already have boost::spirit. :P
It's a little disturbing that one of the first thoughts I had on viewing this code was thinking "Gee, that looks like something I would write..."
I can't tell if these are tears of joy or sadness.
It is like dipping into the part of the yogurt without the fruit in it...
This is amazing.

[size=1]Visit my website, rawrrawr.com

OMG that is so bad and right.
You, sir, have just won the Holy Sh** You're F***ing Awesome Award. Now would be a good time to request a staff member to change your name to "the_awesome_edd."
[size=2][ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

This topic is closed to new replies.

Advertisement