I want to write my own programming language as an extension of the c programming language. The entire programming language that I am inventing are simply shorthands which translate to valid c code. For example:
namespace TcpConnection {
void* connect(char *addr)
}
would translate to:
void* TcpConnection_connect(char *addr)
All that is done is a simple name replacement. This is only one example of an extension which I want to provide. Another simple extension would be function overloading (this would concatenate to the end of the function name the types of its arguments.
In any case, the result is perfectly valid C code. Is there any way to do this without going into gcc code?