Is there any way I can execute a block of code in a loop, like so:
[ some code goes here ]
Where the delimiters are "[" and "]", and also allowing for nested blocks, i.e.:
[the user can create another loop]
I am creating a parser for a language that implements such semantics, and it reads the code one byte/character at a time since the commands are all single characters (which is fairly important), and I am currently stuck in this loop thing.
Any help (in Python, possibly) is appreciated!