# The TransCompilator (tc_r1) v0.2.0: A Deterministic English-to-ELF64/Wasm Compiler in std-Only Rust

> Source: <https://dev.to/addicted_to_her/the-transcompilator-tcr1-v020-a-deterministic-english-to-elf64wasm-compiler-in-std-only-rust-1c8p>
> Published: 2026-11-30 07:41:23+00:00

**Key takeaway:** tc_r1 compiles plain English .eng source deterministically to identical output across its interpreter, zero-libc x86_64 ELF64, and Wasm backends, verified on 1,000 LeetCode problems with no LLM involved.

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.

`v0.2.0-alpha-preview` Release:`.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):

`End.` markers`Let` / `Append` keywords`+`, `-`, `*`, `/`, `=`)
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.

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

`The grid is a rows by cols grid of zeros.`, `Set`/` Increase`/` Decrease cell r, c of grid`)` Otherwise, if` multi-action branches, and inline `stop`/` skip`
`Keep a shared ... holding ...`)` List`, `String`, `Map`, and `Bitwise` prose`0` New Opcodes in v0.2)`v0.2.0` prose features lower cleanly into the existing `stdout` to see every lowering step.`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.
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:

`Stmt::Loop`, `Stmt::If`, or recursive `Call`—no precomputed answer printing)` tc interp == ELF64 == WASM`)` 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.

| 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](https://ponvasanthpon.github.io/TransCompilator/problems/) (and indexed via [`llms.txt`](https://ponvasanthpon.github.io/TransCompilator/llms.txt) across 20 chunks), with direct deep links into the playground.

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](https://ponvasanthpon.github.io/TransCompilator/) 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.

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](https://ponvasanthpon.github.io/TransCompilator/about.html)).

`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.
