Skip to content

Run Code

Contains commands to run code using the Piston API.

run

Executes code using the Piston API.

.run ```<language>
<your code>
```
[stdin]

Arguments:

Argument Required Description
language The language to use for execution
your code The code you want to execute
stdin The text to pass as standard input to the program

Info

You can use the /runtimes endpoint to get a list of all supported programming languages. This list is also shown in the help embed of the run command (.help run).

eval

Evaluates a Python expression using the Piston API.

.[eval|=] <expr>

Arguments:

Argument Required Description
expr The Python expression to evaluate