Not sure if this is the right place to ask this, but lets give it a try.
I want to create a language that is built on top of C: it will be compiled to C code and then use the C compiler normally, so it would be a preprocessor on steroids. I have some questions though:
One thing that worries me is the maximum length of identifiers in C. Since the language is built on top of C, many features will revolve around name dressing, which means that name sizes in the final C source might be a problem. What is generally the maximum length of identifiers? Is that standardized? Any sugestions on how to tackle this problem?
Do you think this could work, or is the C compiler / debuggers too specialized to give coherent error messages with a very diferent syntax? I know you can change the way the compiler/debugger sees lines with the #line directive, but would it be reasonable to have these every two lines or so throughout the whole file? As for errors, I can handle error checking on my compiler to help this problem.
I want this to work with every standard C compiler if possible, so any other sugestions you might want to give?
Thank you in advance.