Fractaler

From Esolang
Jump to navigation Jump to search

fractaler is a thing that uses fractals to code

instructions

X -> A, B... [condition] - X splits into A and B... only if condition
X -< A - X has a value A
- X - count number of X
> X (A,B,C...) places X, with maybe the values being ABC...

fixed cat

X -< A
X:A -> X:(A:(A-1)) [X:A>1]
> X A:5
- X #should be 5

out:a=((out:a-1)*2)+1

X -< A
Y -< B
X:A -> X:(A:(A-1)) [X:A>1], Y:(B:(A-1))
Y:B -> X:B [Y:B>1]
> X A:5
- Y #should be 31