RUN WITH TURBO MODE! Turbowarp recommended. Self-test will run on flag press. Type in the top pane. Enter = new line (indents after :). Tab = 4 spaces. It does not run the script. Run in the title bar. Output is the bottom pane. demo reloads the bundled self-test. paste (or Escape) replaces the editor with a snippet from the ask box. Best in TurboWarp with Turbo Mode. A while True with no wait will hang until you stop. Subset: None/bool/int/float/str/list/dict/tuple; if/while/for; def (closures); class (one base); print/len/range/input and a few list/dict methods. Not included: import, slicing, f-strings, lambda, *args, try/except, with, comprehensions, sets, and the rest of the standard library. Errors are messages, not exceptions.
Tree-walking interpreter compiled with js2scratch. Demo script is a self-test: it should print passed N / failed 0 / ALL OK. IMPORTANT NOTE: This project was written entirely using AI to write Javascript-like code and then converting it using JS2Scratch. Not a single block in this project was human-placed.