T3X/0 a Minimal Procedural Language

Hacker News Top Tools

Summary

T3X/0 is a minimal procedural programming language with a freely available compiler, designed for teaching and portability across systems like Unix, DOS, and CP/M.

No content available
Original Article
View Cached Full Text

Cached at: 08/15/26, 03:38 PM

# T3X.ORG t3x/0/index Source: [https://t3x.org/t3x/0/index.html](https://t3x.org/t3x/0/index.html) --- ![T3X/0 Logo](https://t3x.org/t3x/0/t3x.png)## A Minimal Procedural Language \[[Download](https://t3x.org/t3x/0/index.html#dl)\|[Book](https://t3x.org/t3x/0/book.html)\|[Reference](https://t3x.org/t3x/0/t3xref.html)\] T3X/0 is a small, portable, procedural, block\-structured, recursive, and almost typeless programming language, and the latest member of the T3X family of languages\. Its compiler is[freely available](https://t3x.org/t3x/0/index.html#dl)\([0BSD license](https://t3x.org/t3x/0/0bsd.html)or public domain\)\. T3X/0 syntax is similar to Pascal, its semantics resembles BCPL's\. Here is a[T3X/0 language cheat sheet](https://t3x.org/t3x/0/cheatsheet.pdf)\(PDF\)\. [![NOE editor screenshot](https://t3x.org/t3x/0/noe-m.png)](https://t3x.org/t3x/0/noe.png)The T3X/0 package provides two editors \(one VI\-compatible, one WordStar\-compatible\) with built\-in compiler support\. Compile your programs by literally pressing three keys\. In case of an error the editors jump to the error\. This works even on CP/M\! T3X/0 is used as a teaching language in the books [Write Your Own Retro Compiler](https://t3x.org/t3x/0/book.html)and[Write Your Own Programs](https://t3x.org/wyop/index.html)It is formally defined in the book[The T3X Programming Language \- Formal Definition](https://t3x.org/t3x/0/formal.html)\. Here is the simplest "Hello World" program in T3X/0: ``` USE t3x: t; DO t.write(T3X.SYSOUT, "Hello, World!\r\n", 15); END ``` \(Of course this program cuts some corners, so here are some[more correct versions](https://t3x.org/t3x/0/hello.html)\.\) Here are some more interesting programs written in T3X/0: [Simple Examples](https://t3x.org/t3x/0/exam-sort.html)[More \(or Less\) Serious Programs](https://t3x.org/t3x/0/programs.html)If you want to learn more about the T3X/0 language, here is [A Very Short T3X/0 Summary](https://t3x.org/t3x/0/summary.html)[The T3X/0 Language Reference](https://t3x.org/t3x/0/t3xref.html)[A T3X/0 online compiler](https://t3x.org/t3x/demo/index.html)T3X/0 currently runs on - Unix \(386, x86\_64, ARMv6, ARMv7\) - FreeBSD\-386 \(static code backend, LIBC not needed\) - macOS\-686 - \{PC,MS,DR,etc\}\-DOS 2\.0 and later - CP/M 2\.2 \(Z80 only\) - The TCVM \(Tcode Virtual Machine\) It is self\-hosting on all supported platforms and can cross\-compile to all supported 16\-bit platforms\. [More details on supported systems](https://t3x.org/t3x/0/systems.html)[Some compiler statistics](https://t3x.org/t3x/0/stats.html)### Download the Compiler [t3x0\-47\.zip](https://t3x.org/t3x/0/t3x0-47.zip)\(current version, ~350KB\)This is the full source code to the compiler \(in T3X/0\) and the runtime libraries \(in Z80, 8086, and 386 assembly language, and in C\)\. The archive also contains an implementation of the Tcode Virtual Machine in C, a TCVM binary for DOS, additional libraries, example programs, two editors with built\-in compiler support \("IDEs"\), documentation, and pre\-compiled compiler binaries for CP/M, DOS, FreeBSD, and the Tcode machine\.[What's new](https://t3x.org/t3x/0/news.html)since the book version?[t3x0\-12\.zip](https://t3x.org/t3x/0/t3x0-12.zip)\(book version, ~200KB\)This is the same as above, but the version frozen at the time when the[book](https://t3x.org/t3x/0/book.html)was published\.[t3x0dos\.zip](https://t3x.org/t3x/0/t3x0dos.zip)\(DOS binaries, ~100KB\)A pre\-compiled T3X/0 compiler for DOS, including all libraries in DOS text format, the T3X/0 Reference Manual, example programs, the NOE and VEE editors \(including their source code\), and a configuration utility for patching the compiler so that it can be installed in a directory of your choice\.[t3x0cpm\.zip](https://t3x.org/t3x/0/t3x0cpm.zip)\(CP/M binaries, ~310KB\)A pre\-compiled T3X/0 compiler for CP/M, including all libraries in CP/M text format, the T3X/0 Reference Manual, example programs, the NOE and VEE editors \(including their source code\), and a utility for patching the compiler so that it can be installed on a disk drive of your choice\. **Warning:**ZIP file extracts into the working directory, because CP/M has no directories\. The ZIP file is uncompressed, so it[should extract under CP/M](https://github.com/agn453/UNZIP-CPM-Z80)\.[t3x0agon\.zip](https://t3x.org/t3x/0/t3x0agon.zip)\(CP/M disk image for the Agon Light 2, ~110KB\)An 8MB CP/M hard disk image containing all files of t3x0cpm\.zip, above\. Intended to be installed on an Agon Light 2 computer running CP/M\. ---

Similar Articles

pingdotgg/t3code

GitHub Trending (daily)

T3 Code is a minimal web GUI for coding agents supporting Codex and Claude, available as a desktop app and CLI tool across multiple platforms.

A few feral cats in an ALGOL trenchcoat.

Hacker News Top

POP-2 is a programming language with ALGOL-like syntax and concatenative evaluation, featuring stack-based operations and efficient compilation for systems like Uxn. It includes simple constructs for variables, functions, loops, and I/O, making it suitable for retro-computing environments.

Tumble Forth – from assembly to OS with C compiler

Hacker News Top

Virgil Dupras introduces a series of articles aimed at teaching low-level programming by building a Forth system and a partial C compiler from scratch, starting from bare metal to develop operating system concepts.

XS: A programming language. Anywhere, anytime, by anyone

Hacker News Top

XS is a new programming language distributed as a single statically-linked binary containing the compiler, language server, debugger, formatter, linter, test runner, profiler, and package manager. It runs unchanged on multiple platforms including Linux, macOS, Windows, WASI, iOS, Android, ESP32, and Raspberry Pi, and offers multiple backends including a JIT, VM, and transpilers to C and JavaScript.

Tiny-C Reference Manual Excerpt

Hacker News Top

An excerpt from the tiny-c Reference Manual, describing the origins, design philosophy, and features of the tiny-c programming language, which combines elements of BASIC, LOGO, and C in a simple, integrated environment.