How to write a compiler for Java,C,C++/ Python inside electron app?


#1

I am trying to develop an application which will have a compiler for programming languages like java, c, c++,python to give output when a code is given as input. I found no sources online about this.


#2

Electron uses Node, so you could always run the compilers as child processes:

require('child_process').exec(`javac \"${nameOfFileToCompile}\"`,options,callback)

Node’s child_process docs are here: https://nodejs.org/api/child_process.html