Write and run Swift in your browser. A complete compiler pipeline — Lexer, Parser, Semantic Analysis, IR, SSA, WASM — built from scratch in C.
Press Run or Cmd+Enter...
Open full playground for live diagnostics and hover tooltips.
Structs, classes, enums, protocols, generics, closures, async/await, error handling, pattern matching — all compiled to WebAssembly.
Array, Dictionary, Set, String (Unicode 17.0), Optional, Result, Range — 290 runtime functions with 180+ inlined method handlers.
Direct IR-to-WASM compilation. No LLVM, no clang, no Binaryen. Structured control flow, dead code elimination, constant folding.
Modular design: compiler core knows zero about stdlib. Modules register type declarations, IR handlers, and WASM builtins via plugin API.
Monaco editor with custom Swift theme, live diagnostics, hover tooltips, Cmd+Enter to run. Fully offline — no server needed.
Comprehensive test suite covering collections, concurrency, generics, error handling, strings, numerics. Zero regressions policy.