Natural-language programming has been attempted for decades—from COBOL and Inform 7 to academic NLP-to-code prototypes and modern LLM wrappers. Almost all of them end up in one of three dead ends: disguised procedural syntax wearing English keywords, narrow domain sandboxes, or probabilistic neural networks guessing at program behavior.

Today I am releasing The TransCompilator (tc_r1) v0.2.0-alpha-preview: a deterministic, rule-based English compiler built from scratch across 9 local std-only Rust crates (0 external crates, 0 Wasm imports). It compiles flowing, unindented natural English (.eng) directly into zero-libc x86_64 ELF64 binaries and WebAssembly—with no LLMs, no neural weights, and no black boxes.

What .eng Code Actually Looks Like

One of the hardest traps in natural-language compiler design is quietly sneaking traditional syntax back in through colons, indentation blocks, End. markers, or Let x = ... statements.

To prevent that drift, every program in the 1,000-problem benchmark must pass an automated Novel-Page Silhouette Gate (0 violations):

  • Zero indentation, zero colons, and zero End. markers
  • Zero Let / Append keywords
  • Zero math operators (+, -, *, /, =)
  • Zero single-letter loop variables
  • Flowing, wrapped book paragraphs

Here is #0001 · Two Sum compiled directly from .eng source:

Start with the list of numbers 2, 7, 11, and 15. The target is 9. For every first from 0 to the last position of numbers. For every second from one more than first to the last position of numbers, if item first of numbers plus item second of numbers is target, display first, display second, then stop. 

And here is #0002 · Add Two Numbers, showing while loops, carry arithmetic, modulo/division, and list construction in plain sentences:

The firstlist holds 2, 4, and 3, while the secondlist holds 5, 6, and 4. Start with an empty list for the answer, a carry of 0, and a position of 0. The firstlast is the last position of firstlist. The secondlast is the last position of secondlist. Repeat while position is at most firstlast or position is at most secondlast or carry is 1. The sum is carry. If position is at most firstlast, set sum to sum plus item position of firstlist. If position is at most secondlast, set sum to sum plus item position of secondlist. Place sum modulo 10 into answer. Set carry to sum divided by 10. Add 1 to position. For each value in answer, show value. 

In the browser playground, instead of rainbow syntax highlighting, the compiler drives novel-style semantic typography directly from its parse tree: bold for actions, underlined for variables, italic for anaphors and strings, and muted italic for prose—rendered with zero caret drift.

Inside the Compiler Architecture

Given the same .eng source, tc_r1 lowers to the exact same intermediate representation every single time.

  1. Deterministic Front End & Discourse Resolution The front end performs sentence classification, anaphor/discourse resolution, and unindented prose block scoping without per-verb lookup hacks. In v0.2.0-alpha-preview, general writer-prose support expanded to cover:
    • Native 2D grids (The grid is a rows by cols grid of zeros., Set/Increase/Decrease cell r, c of grid)
    • Unindented prose loops, Otherwise, if multi-action branches, and inline stop/skip
    • Unindented recursive prose functions with shared state (Keep a shared ... holding ...)
    • Natural List, String, Map, and Bitwise prose
  2. Verified Core-7 IR (0 New Opcodes in v0.2) All of those v0.2.0 prose features lower cleanly into the existing Core-7 IR without adding a single new IR opcode. Inside the live playground, you can inspect the Trace, Paraphrase, and Core-7 IR tabs alongside stdout to see every lowering step.
  3. Dual Zero-Dependency Backends Core-7 IR executes across three targets: the native interpreter (tc interp), a static zero-libc x86_64 ELF64 backend emitting direct Linux binaries, and tc_wasm.wasm running offline inside a browser Web Worker with a 2,000,000-step safety budget.

Battle-Testing Against 1,000 Algorithmic Problems

Toy examples make almost any parser look good. To stress-test real control flow, state tracking, recursion, 2D dynamic programming, sorting, and character parsing, I compiled and verified 1,000 / 1,000 eligible LeetCode algorithmic problems (#0001–#1379) in .eng syntax.

Every single solution is checked for:

  • Runtime honesty at the IR level (verified Stmt::Loop, Stmt::If, or recursive Call—no precomputed answer printing)
  • Exact 3-way execution parity (tc interp == ELF64 == WASM)
  • Zero tc-lsp diagnostics

Along the way, v0.2.0-alpha-preview also closed out several deep hardening issues—fixing multi-byte UTF-8 boundary slicing in tc-syntax and tc-lsp, adding a Link Grammar SIGILL preflight fallback, bounds-checking character <pos> of <text>, and generalizing sort list-pointer coercion.

Verification Snapshot (v0.2.0-alpha-preview)

Suite Result
Native test suite 1,113 / 1,113 passing (0 clippy warnings, rustfmt clean)
Workspace dependencies 9 local tc-* crates, 0 external crates, 0 Wasm imports
1,000-problem MBT (#0001–#1379) 1,000 / 1,000 3-way parity (interp == ELF64 == WASM), 0 LSP diagnostics
Adversarial fuzzing 40,000 evals (10k native + 10k LSP + 10k WASM eval + 10k WASM highlight) — 0 panics, 0 traps, 0 hangs

All 1,000 original .eng programs and their expected stdout are browsable in the static HTML catalog (and indexed via llms.txt across 20 chunks), with direct deep links into the playground.

Try It Locally (Linux x86_64)

Because the workspace has zero external crates, it builds completely offline:

git clone https://github.com/PonvasanthPon/TransCompilator.git cd TransCompilator CARGO_NET_OFFLINE=true make build ./target/debug/tc --selftest ./target/debug/tc run examples/hello.eng 

Or open the WebAssembly Playground right in your browser (it also installs as an offline PWA via Service Worker) and open the top-left drawer to load any of the 1,000 programs.

What's Next

Getting here took six months, two failed unified-language experiments (VENBA and MALAR), a lost C++ macro wrapper (KP++), two bare-metal prototypes (Ember and Frozen), and four compiler rewrites (the full story is written up on the About page).

tc_r1 is still at v0.2.0-alpha-preview, with deeper systems features and multilingual human-language front ends targeting Core-7 IR still ahead. If you are into compilers, parsers, IR design, or language ergonomics, try breaking it in the playground—I would genuinely appreciate your critique on Core-7 IR, discourse resolution, or any English phrasing that trips it up.