T3X/0 a Minimal Procedural Language
T3X/0: A Minimalist Procedural Language
T3X/0 represents the most recent addition to the T3X language family. It is designed as a portable, recursive, and block-structured procedural language. Notably, it is (almost) typeless.
The compiler is provided under the 0BSD license or is simply in the public domain.
🧬 Language DNA
The design of T3X/0 is a hybrid of two classic influences:
📚 Educational & Formal Foundations
T3X/0 serves as the primary instructional tool for several publications:
- Write Your Own Retro Compiler
- Write Your Own Programs
For those seeking a rigorous mathematical or logical basis, the language is formally detailed in .
💻 Coding in T3X/0
To get started, you can use the Online Compiler. Below is the most basic implementation of a "Hello World" program.
Note: This specific example
follows strict standardscuts a few corners for the sake of brevity. More robust versions are available in the documentation.
USE t3x: t;
DO t.write(T3X.SYSOUT, "Hello, World!\r\n", 15);
END
Learning Path
- Read the Very Short T3X/0 Summary
- Study the T3X/0 Language Reference
- Explore Simple Examples
- Analyze More (or Less) Serious Programs
🛠️ System Compatibility & Architecture
T3X/0 is highly versatile, boasting self-hosting capabilities on all supported platforms and the ability to cross-compile for various 16-bit systems.
| Platform | Architecture / Version | Notes |
|---|---|---|
| Unix | 386, x86_64, ARMv6, ARMv7 | Full support |
| FreeBSD-386 | Static backend | LIBC is not required |
| macOS-686 | x86 | Supported |
| DOS | 2.0 and newer | Supported |
| CP/M 2.2 | Z80 only | Supported |
| TCVM | Tcode Virtual Machine | Virtualized environment |
📦 Download Options
The T3X/0 ecosystem provides several distribution packages depending on your needs:
| File | Size | Contents | Target Audience |
|---|---|---|---|
t3x0-47.zip | Full source (T3X/0, C, Z80/8086/386 ASM), TCVM in C, IDEs, and binaries. | Developers / Power Users | |
t3x0-12.zip | The version of the compiler frozen for the book's release. | Students of the book | |
t3x0dos.zip | DOS binaries, NOE/VEE editors, manual, and a path-patching utility. | DOS Users | |
t3x0cpm.zip | CP/M binaries, NOE/VEE editors, manual, and a drive-patching utility. | CP/M Users | |
t3x0agon.zip | 8MB CP/M hard disk image. | Agon Light 2 Owners |
⚠️ Critical Installation Notes for CP/M
Warning: Because CP/M lacks a directory structure, the ZIP file will extract all contents directly into your current working directory. To ensure compatibility with CP/M, the ZIP file is uncompressed.
🔧 Integrated Tooling
The package includes two specialized editors that function as lightweight IDEs by providing built-in compiler integration:
- VEE: A WordStar-compatible editor.
- NOE: A VI-compatible editor.