Showing posts with label macro. Show all posts
Showing posts with label macro. Show all posts

9/11/2011

C/C++: Creating an alternative syntax

If you can't explain it simply, you don't understand it well enough.
Albert Einstein

Today, for the first time, I will be posting about something not related to TBS. I'll be showing you how to use macros in C or C++ to create an alternative syntax. This can be fun if you like inventing new syntaxes but you don't want to write a complex compiler or interpreter.