+ 4

Online Compiler ( Java , Python , C++ , Php ....)

Does anyone have an idea to create a compiler like sololearn... java , python , C++ compilers i have created html css js editor but i am not able to understand how i can create other Programming language compilers please suggest me .. something

12th Apr 2023, 6:13 AM
Saurya
Saurya - avatar
8 odpowiedzi
+ 7
You did not really specify one particular programming language. Also it is not clear if you want to build your own website, or use the Sololearn playground for this. Inside Sololearn, the Web playground offers the most ability to run external code. Check these two examples about Nim, a language that is not supported by Sololearn natively: https://code.sololearn.com/WU0L7RIv2TLs/?ref=app https://code.sololearn.com/WDZ4XtSpsP5G/?ref=app Basically you have a couple of options: - compilation is done remotely by a different server and the execution result is communicated back to the caller via REST API. Services like jdoodle do this. - compilation is done remotely, and the whole code editor and execution environment is embedded in HTML eg. with an iframe tag. - some languages can be transpiled to javascript, eg. Brython runs Python code in the browser. - an even more modern approach is to compile to WASM (webassembly) which can be executed by the browser natively.
12th Apr 2023, 9:58 AM
Tibor Santa
Tibor Santa - avatar
+ 4
Saurya Try to search on Google, you will find alots of books and blog posts which would be helpful for you https://link.medium.com/aDgIMbLNVyb
12th Apr 2023, 6:58 AM
Yasin Rahnaward
Yasin Rahnaward - avatar
+ 3
On YouTube there are lot of tutorials available that teaches you step by step. go and search them
12th Apr 2023, 8:48 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 3
Hasnain [ACTIVE CHALLENGER] Yasin Rahnaward already searched and nothing found i need knowledgeable who already created it .. 😁😁not only with half information or fake blogs .
12th Apr 2023, 8:52 AM
Saurya
Saurya - avatar
+ 2
What did you search for? If you search for "how to make an online compiler". Even the first result is enough to help develop a live code editor that supports; C++, Java, and Python.
13th Apr 2023, 1:34 AM
Chris Coder
Chris Coder - avatar
+ 2
Syed Rafiqul Islam start learning 🤠
13th Apr 2023, 11:54 AM
Saurya
Saurya - avatar
+ 1
🤔🤔🤔
12th Apr 2023, 6:15 AM
Sinu
Sinu - avatar
0
Hey bro how to code in java
13th Apr 2023, 11:49 AM
Syed Rafiqul Islam
Syed Rafiqul Islam - avatar