Reads, compiles, runs source code in supported languages, and gives you an output.
- python2 (python2)
- python3 (python3)
- C (gcc)
- C++ (g++)
npm install code-evaluator
See example: express-example.js
Error.name | Description |
---|---|
CODEDIR_NOEXIST | Codefile storage directory does not exists. |
CODEFILE_NOWRITE | Unable to write codefile. |
INPUTDIR_NOEXIST | Inputfile storage directory does not exists. |
INPUTFILE_NOWRITE | Unable to write inputfile. |
COMPILATION_ERROR | Unable to compile from codefile |
CODERUN_ERROR | Unable to run code or binary |