Re:Turnstyle – An esoteric, graphical functional language
by lifthrasiir on Thursday August 22, 2024 @12:08AM
(#41316728)
`2 + 3` would be internally `((prim(3, 1) 2) 3)`, which can be composed of following fragments (where `^>v<` indicates the direction and the position of the current turnstile):
So assuming that each distinct letter (including space, which is otherwise unused here) corresponds to a distinct color, one possible encoding would be:
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:
[ Parent
| on HN ]
There are no comments on this comment yet.