Talk:Astridec
Jump to navigation
Jump to search
Nested loops
Is it possible to create arbitrarily deep nested loops in this language?
How would you replicate this simple bf loop-within-a-loop in Astridec?:
+++[->++++[->++++<]<]>>+.
It should output 1
(ASCII 49), with a lot less than 49 increment operators. I can't see a simple way of doing this, and I'm not sure if tracking block nest levels in auxiliary cells is workable.
Every [
and ]
would need to be both a 5
and 6
, along with some additional logic to determine whether it needs to skip the IP further backwards or forwards, or to execute the block code. Salpynx (talk) 20:28, 4 January 2022 (UTC)