Turnstyle – An esoteric, graphical functional language
jaspervdj.be
jaspervdj.be
EDIT: I think I got it and I think calling this as an "encoding" is a misnomer. The program starts with a single term `turnstyle(x, y, dir)` which gets lazily evaluated to the actual term. So not only the evaluation might be lazy, but the parsing is also lazy and this is a key point of this esolang which should be highlighted more in my opinion.
AA
prim(3, 1): >BBB
C
literal 2: AvB
CC
literal 3: AvB
CCC
A
(prim(3,1) 2): >*****prim(3,1)
*
*
2
A
((prim(3,1) 2) 3): >*****(prim(3,1) 2)
*
*
3
So assuming that each distinct letter corresponds to a distinct color, one possible encoding would be: A A BB
>>BBBBBCCCCCD
B C AD
B C D
CBD DCA
AAA BB
The specification allows for a simple "identity" pattern which can be used to extend otherwise overlapping patterns here. The following, if I did everything right, would be more compact but much harder to decipher: CADABB
>>BBCD
CBDCAD
AAABBDEdit: Another one is Cellpond https://cellpond.cool/ https://github.com/TodePond/CellPond