TON618 Playground

Write and run TON618 code straight in this page.

This playground runs ton618-lite.js, a JavaScript re-implementation of the TON618 language, entirely in your browser โ€” there's no server involved and nothing is sent anywhere. It covers the core language (types, control flow, functions, arrays, dicts, try/catch) and the ton.random/ton.time/ton.json built-in modules. It does not support ton.sys/ton.os/ton.requests or IMPORT:// of your own module files, since those need real process/filesystem/network access a browser sandbox can't provide โ€” install the real interpreter (see the docs) for those.
Nothing leaves your browser.
script.ton
Output
Press "Run" to execute the script.