Contribution to this website is welcomed. However, please read this guide before you contribute.
function yourlang(program,input){
//code here...
return output;
}
If the interpreter is in other languages but can be called from JavaScript (like C by using Emscripten), the JavaScript file should call the interpreter.
The function name should not collide with function names of existing esolangs.
If you have a Python interpreter (You have to define a function just like the JavaScript ones), add a Python file to link in the about.html file in the last step, and add a JavaScript file just like pyexec_example.js. If you have a C++ interpreter, you should use Emscripten to compile it into WebAssembly and call it from JavaScript.
option tag inside the select tag in the index.html file, the text should be the language name, like this:
<option>YourLang</option>
The option tags should then be sorted by text, lexicographically.
script tag in the index.html file, the source is the JavaScript file you created in the first step, like this:
<script defer src="yourlang.js"></script>
script tags should be sorted by their sources, in lexicographical order, just like the option tags. Note: If you use the Python code interpreting feature, your script should be a module.
In the run function, add a line of code that maps the option of the new esolang to the function, like this:
funcs["YourLang"]=yourlang;