- Mux for routing
- Infant Lang Interpreter The Infant Lang Interpreter
PORT
: The port to run the sandbox on. Change the value in the .env file or do manual port forwarding.
- It uses a modified version of the Infant Lang Interpreter for the playground.
- Uses Mux for routing.
interpreter.go
is the main file for the interpreter.
-
GET /api/stable/play/
- ReturnsREADY
to indicate that the sandbox is ready to receive the POST request. (This is used because of the cold boot times of the Dyno instances) -
POST /api/stable/play/
- The POST request should contain the code to be executed.- Body:
data
: The stringified JSON object containing the code to be executed.
- Response:
- JSON Object containing the result of the code execution.
- Body:
The JSON object should contain the following fields:
{
"code": string[] // array of lines of code
}
go build .
Enjoy 🎉