txeT
Every program prints its own source backwards.
2018 · Turing complete: no · ●○○ easy · esolangs.org
Tested with 5 known programs · Test method
Run it
The idea
txeT is the mirror image of a language that prints its source as it is. A Hello World is the greeting written backwards. A program is a quine exactly when it is a palindrome, so S, Q and QuineniuQ are all quines. The source files take the extension .txt, which is txt backwards too.
The machine
None. The output is the source reversed character by character. The specification gives the Unix commands rev and tac together as an interpreter, which turn lines and the order of the lines around.
Example
Patterns it teaches
- Every text runs: any text is a program and prints something.
- Quine: the quines are exactly the palindromes.
Further
See also
Cell-based
Write your own in Run Convert a program from txeT
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: txet.
Command line
shib run txet -e 'S'shib manual txetSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/txet.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org