Bracky
-- This is based off ((()))(((())))=5. Highly thanks to the person that made it. --
Bracky is a esolang that only uses (). Also it uses a String-rewriting paradigm
It is a more advanced version of ((()))(((())))=5 having more instructions.
Data shape
(), (()), (()(())) and more are valid shapes. Shapes must be only made out of brackets and the brackets must be aligned.
Programs are made out of shapes, and shapes next to these. These create a pair.
Code begins with the initial shape, which will later be replaced based off pairs.
Example programs
The program "(())", "((()))((()()))" will replace all (())s with (()())s.
The program "(())", "(())(()())" will crash because it continously replaces all ()s with ()()s.
User programs (USER EDITED SECTION)
here, you can put ur programs now PUT THEM
more info
- The initial shape will be in the first line.
- After the first line, there will be pairs. They will replace all instances of the first element of the pair with the second element of the pair.
- Code is executed line by line.
- If nothing exists to replace, the program halts.
Math
Since changing ()s can cause crashes, its dangerous to use them.
Lets say (()) is one. We can add 1 to it by doing (())(()()), we can do x*2.
Also, we can do (()())(()) to do x/2. We can use nesting for numbers it will be better.
The sucessor function would be (())((())). But this destroys the previous examples- I DONT CARE