We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

tr

From Esolang
Jump to navigation Jump to search

Tr is a small esolang developed by user:Klk bb primarily based on examples.

Tr overview

The name tr comes from the Spanish word tiro, abbreviated as tr. The language outputs tiro when given invalid syntax, which inspired the name.
Tr only accepts one command per program. In other words, the entire program is treated as a single command rather than being split into symbols, tokens, or other elements.

How do you translate tiro?

Tiro is often translated as "shot" or "throw." This has nothing to do with tr.

Commands

The only instruction is 2, which outputs Hello, world!. Any other input produces tiro.

Examples

Hello, World!

2

Quine

tiro

Interpreters

Python interpreter

print("hello, world!"if input()=="2"else"tiro")