No description
Find a file
2026-05-06 12:43:47 -05:00
src Update empty dump message 2026-03-27 02:07:16 -05:00
.gitignore Implement parsing 2026-03-26 20:13:07 -05:00
Cargo.lock Update version 2026-03-27 02:07:29 -05:00
Cargo.toml Update version 2026-03-27 02:07:29 -05:00
LICENSE Finalize (for now) 2026-03-27 01:49:29 -05:00
README.md Update README.md 2026-05-06 12:43:47 -05:00

Tres

Tres is an interpreter for the Tc2 esolang.

The language uses a command pointer between 0 and and 7 that points to a list of brainfuck commands.

Instructions

Tc2 features two instructions:

a - Moves the command pointer to the right one, wrapping around to 0 after 7.

b - Executes the brainfuck command at the current pointer index.

The commands, in order of index, are: + - < > . , [ ]

Additionally, there is a special instruction, !, used to dump the memory (or tape) of the interpreted program for debugging.

Any characters that aren't instructions get ignored.

Example

This program reads a character as input, prints the value to debug, then doubles it and prints it to debug again.

aaaaab!abaaabaabaaaaabbaabaaaaab!

Usage

  1. Ensure that Cargo is installed.
  2. Run cargo install Tres.
  3. Run Tres <path/to/input/file>.

The interpeter does not prompt for input, instead pausing until you provide it. If the program seems to hang, type a character and press Enter.