Talk:Astridec

From Esolang
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)


Actually I’m not quite sure myself. The translation is not trivial since bf brackets are on a stack and Astridec does not use a stack. While Astridec is usable for simple programs, it is not designed for that. It is one of my “Starstuff” languages, designed to convert arbitrary sequences of text into program code (by converting characters to integers and concatenating them together). Sorry for the long wait, I need to check on my projects a bit more often. PixelatedStarfish (talk) 14:55, 3 July 2022 (UTC)

I have created a new language that uses a stack for this. I call it The. PixelatedStarfish (talk) 14:31, 4 July 2022 (UTC)