how to create online compiler..

Sep 27, 2010 at 8:06pm
i want to create a online c++ compiler for a website,which may work as online solution to traditional(offline) compilers.
what kind of programming i will have to learn for making online compiler
is there any already existing compiler in linux system which could be combined to any site.
plz help.
Last edited on Oct 6, 2010 at 7:20pm
Sep 27, 2010 at 8:10pm
You could have a site which accepts a piece of code, sends it to a dedicated server which compiles it, and sends the result to you as a download. There is no way of making this into a process as simple as adding some code into the web page source code and just have it run as far as I know, though.

-Albatross
Sep 27, 2010 at 8:20pm
I kind of judge from his English that he isn't really going to do it, anyways. Might be wrong, but that's just me.

Albatross' way seems fair. (But this whole idea isn't too fancy, at all)
Last edited on Sep 27, 2010 at 8:21pm
Sep 28, 2010 at 9:51am
Another way would be writing the compiler in ECMAScript or PHP ;^)
Sep 28, 2010 at 12:11pm
I wrote a syntax highlighter in Perl. It can even go as far as highlighting some easily-found errors. I thought about making it do complete syntax checking but that's a huge undertaking and would continuously evolve.

There are plenty of online compilers already, too. It's just not worth the effort.
Topic archived. No new replies allowed.