tXt

From Esolang
Jump to navigation Jump to search

tXt is every brainf**k derivative, on account of it being a derivative of Xt.

Syntax

A tXt source code file (.txt) is structured similarly to Xt, with a set of TrivialBrainfuckSubstitutions defined by a set of eight characters:

><+-.,[]
++[>+<-]

The difference in tXt is that each "code" line also functions as the "definition" line for the next line. The character restriction imposed by Xt (namely, that once a character is defined and used it can never be defined again) is absent in tXt because of its even stranger syntax. However, this means that if a character is given a definition and not used, it will keep its definition until changed.
tXt only supports the eight original brainf**k characters, in addition to the numbers 0-9. This difference makes Xt programs not run in tXt.

Example Programs

><+-.,[]
+[>.+<]0

I'm pretty sure this will print the entire ASCII character set repeated endlessly. However, I have no interpreter to check if I'm right.
Help.

See Also