I was wondering if there is any way using the mingw g++ compiler to make code that acts like this:
#define myLanguageBlock(X) doMyLanguageBlock(#X)
void doMyLanguageBlock(const char* code){/*this executes the code as if it were in another language, I have already written this function*/}
int main()
{
myLanguageBlock(
this is all code written in my language. It has comma's, periods, and {brackets)][);
return 0;
}
I am having trouble figuring this one out.