( )

From Esolang
Jump to navigation Jump to search
The title of this article is not correct because of technical limitations. The correct title is actually [ ].

[ ] (pronounced praces or /pʰreɪsəs/) is a very simple and very stupid esolang made by User:Yayimhere

how it works

[] will swap the chars in and outside the braces.(so [A]B become [B]A. if there is a space before the braces it will append whats in the braces to whats outside the braces(so [A]B becomes [A]AB). if there is a space before and after some braces it will create whats called a link. it will link with the nearest other pair of brackets. what linking does is that everything that happens to one of the braces happens to the other as well. if there is a symbol to the left and right of the braces it will link with nearest braces with spaces around them. it will then replace every instances of whats in the braces surrounded by symbols with whats in the the braces with spaces around them. linked braces with $ inside will print the contents of what its linked to and a newline. the program halts when it cant apply any more rules. the rules are applied from left to right. $ is applied every time the rules are applied but it does not itself count as a rule. chained linking is allowed and linking between elements on different lines will not happen

examples

hello, world!:

 [$] [hello world] 

Looping counter:

 [$] [ [*]*] 

or

A[*)]A [* ] 
 [$] [*)] 
A[* ]A [**)] 

the first one has a [*] at the start but is shorter. the second one does not
ALL SPACES ARE MANDATORY