_/

From Esolang
Jump to navigation Jump to search

_/ also known as water and a wall is a esolang created by User:Yayimhere where you replace bits with other bits n' stuff

syntax

so the basic syntax is:

(x)_/y

x is setup like this(so replace the x part in the above diagram):

z./w¯\

so what this pattern does is:

  • check for bit pattern z
  • replace it with w

and y us just a list of bits, that we are checking. so for example if its set up like dis:

(10./110¯\)_/10

produces:

10
110
1110
11110
111110
1111110
11111110

note that y in the x syntax is the results and x is the input, while in the y section is called the production
and so on. if a result is ¨\ it will print the productions. each line is checked top to bottom(unless there's a X/ at the end of a line which will make it force executed as the first). the program halts when no more things can be applied. also if a bit is replaced with :/ it will be replaced with the line below's production(and ;/ for the above) and replacing with l/ it will take user input(as a list of bits) and set the production to that.

examples

Truth-machine:

(0./¯\1./¨\¯\)_/:/
((10./110¯\))_/l/0X/

Looping counter(with 1 as *):

(0./¯\1./¨\¯\)_/:/
(10./110¯\)_/10

See also