|
I would say start with the current IDE. Just add a checkbox pair for Java/C or C++. Then have it send it to one of two parsers based on the box selected. The parsers can be derived from a common base class, and a factory class can choose which one to instantiate based on the checkbox. As for what compiler- we may wish to avoid one. The biggest problem with C/C++ is the lack of a sandbox, which is needed for a program like this. It may be smarter to write an interpreter. The interpreter can contain wrappers for the standard C/C++ library calls deemed "safe" (which should be almost all except for file read/write to anything but stdout and direct memory functions). IMHO, this is the way to go. |