Braces
Jump to navigation
Jump to search
Braces is an esolang invented by User:None1, the only valid command is braces.
Execution
A program in Braces consists of several blocks of code side by side. When a program in Braces is executed, it is evaluated and the result is printed to standard output.
An empty pair of braces
When an empty pair of braces is evaluated, it reads a character from standard input and returns it.
One block of code inside a pair of braces
Execute the block of code inside forever.
Multiple blocks of code inside a pair of braces
Evaluate every block of code, and concatenate the results together, and reverse the result, and return it.
Example Programs
Cat Program
{{}}
One Time Cat
{}
Reverse a string with only 2 characters
{{}{}}