-
Take QBJS as an example: It's an online service. To build and run, I must find a way to have ecode upload the source code, fetch the compilation message and the run output from the online service. Is it something doable? There are also other online compilers for various languages like C/C++, Java,... They are more advanced than QBJS so they could provide an API to work with (making it easier to implement?). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Realistically speaking you should implement your own script to do all that (an LLM probably can do it for you in one shot). The script could output to the stdout and that's it. Call the script as your build step, from the ecode side you'll just need to use the I'm not familiar with any online compiler allowing to upload the file from an API though, you'll have to find one. |
Beta Was this translation helpful? Give feedback.
Realistically speaking you should implement your own script to do all that (an LLM probably can do it for you in one shot). The script could output to the stdout and that's it. Call the script as your build step, from the ecode side you'll just need to use the
${current_doc}
to pass the current document path to the script. So something like:Command:
bash
Arguments:
yourscript.sh ${current_doc}
I'm not familiar with any online compiler allowing to upload the file from an API though, you'll have to find one.