Getting StartedInteractive
Interactive Playground (Live Editor)
Write and run English or Turkish HADID code directly in your browser with instant output and token inspection.
3 min readUpdated: v0.8.0-rc Reference
HADID Live Playground
Pick a preset below or edit the code freely and press Run (or Ctrl/⌘ + Enter). Inspect both live program output and the real lexical token stream side by side.
INTERACTIVE PLAYGROUND
Try HADID Right in Your Browser
Write English or Turkish HADID code, click Run or press Ctrl/⌘ + Enter to inspect live output and lexical tokens instantly.
main.had· Run with Ctrl / ⌘ + Enter
exit 0 · 0.43ms
10! = 3628800
KEYWORDfnIDENTfactorialSYMBOL(IDENTnSYMBOL:TYPEi64SYMBOL)SYMBOL:TYPEi64SYMBOL{KEYWORDifSYMBOL(IDENTnSYMBOL<=NUMBER1SYMBOL)SYMBOL{KEYWORDreturnNUMBER1SYMBOL;SYMBOL}KEYWORDreturnIDENTnSYMBOL*IDENTfactorialSYMBOL(IDENTnSYMBOL-NUMBER1SYMBOL)SYMBOL;SYMBOL}KEYWORDletIDENTresultSYMBOL=IDENTfactorialSYMBOL(NUMBER10SYMBOL)SYMBOL;IDENTprintSYMBOL(STRING10! = SYMBOL+IDENTjson_from_i64SYMBOL(IDENTresultSYMBOL)SYMBOL)SYMBOL;
The browser sandbox executes core language features, bilingual syntax, Option/Result, struct, enum, List, UTF-8, JSON, UTC time, and virtual file APIs. Native C17 AOT builds, TCP llhttp servers, and disk SQLite run via the local `hadid` CLI.
What Runs in the Browser Sandbox?
- Full Bilingual Core: English & Turkish keywords,
i32/i64/f64/byte/bool/string, functions, recursion, value-copiedstruct/yapi, nominalenum/sayim,Option<T>,Result<T, E>,match/eslestir, andList<T>. - Standard Library: UTF-8 text & search builtins, strict RFC 8259 JSON builtins, UTC time formatting/parsing, and an in-memory virtual filesystem for
file_write_text/file_read_text. - Safe Client-Side Sandbox: Runs entirely in your browser with a 50,000-step infinite-loop guard.
